Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See what CURL sends from a PHP script

I'm having dificulties to query a webform using CURL with a PHP script. I suspect, that I'm sending something that the webserver does not like. In order to see what CURL realy sends I'd like to see the whole message that goes to the webserver.

How can I set-up CURL to give me the full output?

I did

curl_setopt($ch, CURLOPT_VERBOSE, TRUE);

but that onyl gives me a part of the header. The message content is not shown.

like image 541
BetaRide Avatar asked Nov 13 '22 09:11

BetaRide


1 Answers

Thanks for all the answers! After all, they tell that It's not possible. I went down the road and got familiar with Wireshark. Not an easy task but definitely worth the effort.

like image 132
BetaRide Avatar answered Nov 16 '22 04:11

BetaRide