This question already has an answer here:
How can I convert to PHP Curl?
curl -X GET \<br>
-H "X-Parse-Application-Id: APPIDKEY" \<br>
-H "X-Parse-REST-API-Key: RESTAPIKEY" \<br>
-G \<br>
data-urlencode 'where={"playerName":"Sean Plott"' \<br>
https://api.parse.com/1/classes/ClassName<br>
I have tried:
$ch = curl_init();<br>
curl_setopt($ch, CURLOPT_URL, "https://api.parse.com/1/classes/ClassName");<br>
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');<br>
curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Parse-Application-Id: APPIDKEY","X-Parse- REST-API-Key: RESTAPIKEY"));<br>
curl_setopt($ch, CURLOPT_POST, true);<br>
curl_setopt($ch, CURLOPT_POSTFIELDS, 'where={"playerName":"Sean Plott"}');<br>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>
$player = curl_exec($ch);<br>
curl_close($ch);<br>
var_dump($player);
but the result is:bool(false)!
</div>