note 94595 deleted from function.fsockopen by danbrown
| From: | danbrown@php.net | Date: | Fri, 13 Nov 2009 13:51:57 +0000 |
| Subject: | note 94595 deleted from function.fsockopen by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162865@lists.php.net to get a copy of this message | ||
Note Submitter: koala3d at hotmail dot com
----
Commenting on FaTe's note, I use this for HTTP content:
list($header, $data) = explode("\r\n\r\n", $data, 2);
This should work most of the time, if not at all times, as long as the web server being queried is
fully HTTP compliant.