I am trying to do a simple login form to parse but i cant find what is the problem... here is the result i get after this code...
$username = $_POST['username'];
$password = $_POST['password'];
$url = 'https://api.parse.com/1/login.php?username='.$username.'&password='.$password;
$headers = array(
"Content-Type: application/json" ,
"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, $headers);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($handle);
curl_close($handle);
$array = json_decode($data);
echo $array;
print_r($array);