I have a php script that returns just plain text without any html. Now I want to make a cURL request to that script and I get the following response:
If someone already saved the curl response to a file (like me) and therefore don't know how big the header was to use substr, try:
$file = '/path/to/file/with/headers'; file_put_contents($file, preg_replace('~.*\r\n\r\n~s', '', file_get_contents($file)));