> 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

Reply via email to