Friday, 15 January 2010

PHP, curl, and raw headers -


When using the PHP cURL function, to see if the raw header is curl On the server

You can use:

Before the call

  curl_setopt ($ ch, CURLINFO_HEADER_OUT, true);  

after

  $ headers = curl_getinfo ($ ch, CURLINFO_HEADER_OUT);  

No comments:

Post a Comment