POST Request Work on POSTMAN but not in PHP

121 Views Asked by At

I need to POST and get content of the reply email.

Link - https://sacramento.craigslist.org/cto/d/north-highlands-2005-toyota-tacoma-4x4/7102315098.html In this link there will be Reply button. When you enter the button an XHR request will send with form data named as browserinfo3. Inside they send browser specific data. But I have tried the request without any params in POSTMAN. Just changed the request type to POST and result has been returned successfully. Now I have written the same script in PHP by using Guzzle. Tried many ways but no success. It always returns 404 request. Can you please tell me how to POST correctly in order to get successful request.

 $emailUrl = 'https://sacramento.craigslist.org/contactinfo/sac/cto/7102315098';
 $connection = new Client(["http_errors" => false]);
 $page = $connection->post($emailUrl);
0

There are 0 best solutions below