Description
Question:
I can extract curl response headers this way in my application:
$response = curl_exec($ch);
$getinfo = curl_getinfo($ch , CURLINFO_HEADER_SIZE);
$response header = substr($curl_response, 0, $getinfo);
However , I am looking if there a way to get the whole response body from curl_getinfo()
function in case I don't want to use curl_exec.
OR
is there a way to extract curl_response_headers without using $response
body returned by curl_exec()
PHP Version
PHP 8.2
Operating System
Ubuntu 22