Jump to content

curl header and body


warnockm

Recommended Posts

i think the CURL_HEADER bug report is pretty old.  I've had success using CURL_HEADER, however, all it does is puts the header in w/ the data, so you get:

Content-type: text/html
... etc

at the top, and then the response

<html>
... etc

after that.  Someone wrote something the separates the responses.  apparently its just 2 new lines/carriage returns:http://us2.php.net/manual/en/function.curl-setopt.php#44986.  I was hoping to have it built into the CURL functions, since i can't see how having the header and response in the same would be that useful.
Link to comment
https://forums.phpfreaks.com/topic/26518-curl-header-and-body/#findComment-122660
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.