Re: cvs: phpdoc /en/functions network.xml
| From: | Rasmus Lerdorf | Date: | Sat, 08 Dec 2001 22:22:28 +0000 |
| Subject: | Re: cvs: phpdoc /en/functions network.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969339575@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.
That's not true at all. The Host header is sent by every browser out
there with HTTP/1.0 requests. True, the Host header is optional in
HTTP/1.0 and required for HTTP/1.1, but that by no means means that it
isn't present in 1.0 requests.
-Rasmus