The curl_getinfo function returns a lot of metadata about the result of an HTTP request. However, for some reason it doesn\'t include the bit of information I want at the m
No there is no more efficient way Your can use CURLOPT_WRITEHEADER + VariableStream So.. you could write headers to variable and parse it