I’m trying to figure out why a cURL process (written in PHP) that used to be working is no longer working. I’m receiving the same data back as what an actual browser is receiving, but I’m not sure if I’m sending the same information as the browser.
Is there a way I can find out what the cURL library in PHP is sending?
Note: I don’t have access to the server I’m accessing and I’m actually thinking they’re blocking me, so I’m trying to determine what I need to change to copy the browser.
Since PHP 5.1.3, you can use CURLOPT_HEADER_OUT to get the request headers you sent. I think this might be what you’re looking for.