note 71068 modified in function.http-get by bjori

From: Date: Sat, 21 Apr 2007 07:56:18 +0000
Subject: note 71068 modified in function.http-get by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125733@lists.php.net to get a copy of this message
The hard work of parsing out the response is done in http_parse_message(). To replace the relatively weak file_get_contents(), using $body = http_parse_message(http_get($url))->body; The advantages to using http_get include getting back headers and controlling timeouts. --was-- The hard work of parsing out the response is done in <a href='http://us2.php.net/http_parse_message'>http_parse_message</a>. To replace the relatively weak file_get_contents(), using $body = http_parse_message(http_get($url))->body; The advantages to using http_get include getting back headers and controlling timeouts. http://php.net/manual/en/function.http-get.php

« previous php.notes (#125733) next »