PHP - Display cURL Verbose info

Viewed 11858

I'm having some trouble with a particular cURL command and I'd like to see the headers and responses. In the command line I use -v and it displays everything, however...

In PHP I'm attempting to use:

curl_setopt($curl, CURLOPT_VERBOSE, 1);

However, nothing is being displayed.

I'm using PHP 5.3.24 on Windows Server 2008 on IIS.

Supposedly the info is sent into the stderr stream which I assume means the regular log used for PHP errors - however nothing is going there either. I'm getting no header results for cURL commands that I know are working and those that I know are not working.

1 Answers
Related