Here is all you need:
curl_setopt($curlHandle, CURLINFO_HEADER_OUT, true); // enable tracking
... // do curl request
$headerSent = curl_getinfo($curlHandle, CURLINFO_HEADER_OUT ); // request headers
More Related Contents:
- Header only retrieval in php via curl
- Async curl request in PHP
- Persistent/keepalive HTTP with the PHP Curl library?
- Bad Request. Connecting to sites via curl on host and system
- Protocol https not supported or disabled in libcurl
- PHP cURL, POST JSON
- PHP – Debugging Curl
- How to get file_get_contents() to work with HTTPS?
- curl POST format for CURLOPT_POSTFIELDS
- PHP cURL custom headers
- Setting Curl’s Timeout in PHP
- Why I have to call ‘exit’ after redirection through header(‘Location..’) in PHP?
- Keeping session alive with Curl and PHP
- PHP page redirect [duplicate]
- Copy Image from Remote Server Over HTTP
- Manually parse raw multipart/form-data data with PHP
- How to get response using cURL in PHP
- handle json request in PHP
- Get Element by ClassName with DOMdocument() Method
- SFTP from within PHP
- Correct way to set Bearer token with cURL
- Run composer with a PHP script in browser
- How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?
- How to pass variables received in GET string through a php header redirect?
- PHP header location-redirect doesn’t work – why? [duplicate]
- Send XML data to webservice using php curl
- Login to Google with PHP and Curl, Cookie turned off?
- Is making asynchronous HTTP requests possible with PHP?
- How to cause a redirect to occur before php script finishes?
- FTP upload file to distant server with CURL and PHP uploads a blank file