I know that when I set CURLOPT_FOLLOWLOCATION to true, cURL will follow the Location header and redirect to new page. But is it possible only to get header of the new page w
Make sure you set CURLOPT_HEADER to True to get the headers in the response, otherwise the response returned as blank string
CURLOPT_HEADER