php-rest-curl icon indicating copy to clipboard operation
php-rest-curl copied to clipboard

rest curl post get 400

Open kaiosoft opened this issue 6 years ago • 1 comments

iam try to use

$url = "https://graph.facebook.com/v2.6/me/messages?access_token=".$accessToken; RestCurl::post($url);

but get in status 400 how to use post method?

kaiosoft avatar Feb 14 '19 12:02 kaiosoft

// POST $result = RestCurl::post($URL, array('name' => 'RestCurl'));

You are sending nothing, the request post need an array.

PS: HTTP Status 400

kiezmor avatar Feb 14 '19 13:02 kiezmor