note 62046 deleted from function.fsockopen by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 19:37:19 +0000 |
| Subject: | note 62046 deleted from function.fsockopen by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142304@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Dante
28-Dec-2005 06:42
If you're using code like the manual's example, it is a good idea to keep using HTTP/1.0
instead of changing it to HTTP/1.1. Using HTTP/1.1 with fsockopen sometimes results in junk before
and after the body content (but not in the headers).
This is not actually true, if you are using HTTP/1.1, you will most likely be receiving chunked
data. The 'junk' that you are seeing is probably the size of the chunks in hex.