note 79907 added to function.curl-exec
| From: | aeontechatgmaildotcom at osu1 dot php dot net | Date: | Wed, 19 Dec 2007 04:14:15 +0000 |
| Subject: | note 79907 added to function.curl-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133769@lists.php.net to get a copy of this message | ||
// easy way to parse raw http headers
function parse_http_headers($rawheaders)
{
$lines = explode("\n",$rawheaders);
if(substr($lines[0],0,5) == 'HTTP/')
{
$response = array_shift($lines);
}
foreach($lines as $line)
{
preg_match("/^(.+?):\s+(.+)$/",trim($line),$matches);
$headers[$matches[1]] = $matches[2];
unset($matches);
}
return $headers;
}
----
Server IP: 209.41.74.194
Probable Submitter: 76.21.23.72
----
Manual Page -- http://www.php.net/manual/en/function.curl-exec.php
Edit -- https://master.php.net/note/edit/79907
Del: integrated -- https://master.php.net/note/delete/79907/integrated
Del: useless -- https://master.php.net/note/delete/79907/useless
Del: bad code -- https://master.php.net/note/delete/79907/bad+code
Del: spam -- https://master.php.net/note/delete/79907/spam
Del: non-english -- https://master.php.net/note/delete/79907/non-english
Del: in docs -- https://master.php.net/note/delete/79907/in+docs
Del: other reasons-- https://master.php.net/note/delete/79907
Reject -- https://master.php.net/note/reject/79907
Search -- https://master.php.net/manage/user-notes.php