I'm trying to parse a simple login form, but I do not know what the problem is. .. Here is the result I get after this code ...
$ username = $ _POST ['username']; $ Password = $ _POST ['password']; $ Url = 'https://api.parse.com/1/login.php?username='.ususername.'&password='.$password; $ Headers = array ("content-type: application / jason", "x-parse-application-id: {app_id_hidden}", "x-parse-rest-API-key: {key_id_hidden}"); $ Handle = curl_init (); Curl_setopt ($ handle, CURLOPT_URL, $ url); Curl_setopt ($ handle, CURLOPT_HTTPHEADER, $ header); Curl_setopt ($ handle, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ handle, CURLOPT_RETURNTRANSFER, true); $ Data = curl_xac ($ handle); Curl_close ($ handle); $ Array = json_decode ($ data); Echo $ array; Print_r ($ array);
$ url = 'https: //api.parse.com/ 1 / 'Login'; $ AppId = ''; $ Rest = ''; $ Headers = array ("content-type: app / jason", "x-parse-api-edi:". $ Id id, "x-parse-rest-api-key:". $ Rest); $ Username = "test"; $ Password = "test"; $ Rest = curl_init (); Curl_setopt ($ rest, CURLOPT_URL, $ url); Curl_setopt ($ rest, CURLOPT_HTTPGET, 1); Curl_setopt ($ rest, CURLOPT_CUSTOMREQUEST, "GET"); Curl_setopt ($ rest, CURLOPT_ENCODING, 'username = test and password = test'); Curl_setopt ($ left, CURLOPT_HTTPHEADER, $ header); Curl_setopt ($ rest, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ rest, CURLOPT_RETURNTRANSFER, true); $ Response = curl_xac ($ left); Echo $ reaction; Curl_close ($ left);
No comments:
Post a Comment