Re: cvs: phpdoc /en/functions network.xml
| From: | Johannes Froemter | Date: | Sat, 08 Dec 2001 22:19:26 +0000 |
| Subject: | Re: cvs: phpdoc /en/functions network.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969339574@lists.php.net to get a copy of this message | ||
Jim Winstead wrote:
> fsockopen: add host header to example, add see also for curl extension
>
>- fputs ($fp, "GET / HTTP/1.0\r\n\r\n");
>+ fputs ($fp, "GET / HTTP/1.0\r\nHost: www.php.net\r\n\r\n");
The Host: header is only present in HTTP/1.1 requests.
--
Johannes