Hi All

I am using Guzzle PHP client to make REST calls for PUT and DELETE.

On the server I have this code in my index.php file where the request is being made.

PHP Code:
//index.php
echo $_SERVER['REQUEST_METHOD'], '<BR>';
print_r($_REQUEST);
print_r(getallheaders()) 
For GET and POST methods, I am getting the values of all three variable/functions ie. $_SERVER['REQUEST_METHOD'], $_REQUEST and getallheaders(), but in case of PUT and DELETE methods I am only getting value of $_SERVER['REQUEST_METHOD'] i.e PUT or DELETE and just the data in the getallheaders(), but nothing in the $_REQUEST variable.

What could be the reason?

Any inputs will be great...


Thanks