Task: PHP cURL - Retrieve Response Headers AND Body in a Single Request
Task: PHP cURL - Retrieve Response Headers AND Body in a Single Request: a task in Terminal-Lego-15k (Harbor dataset). Write a PHP script that performs a cURL request and captures both the response headers and the response body separately in a single HTTP request, without issuing a separate HEAD…
The task
Write a PHP script that performs a cURL request and captures **both** the response headers and the response body separately in a single HTTP request, without issuing a separate HEAD request beforehand.
Part of PrimeIntellect/Terminal-Lego-15k.