Re: [patch] dbootstrap/http-fetch
On Tue, Mar 21, 2000 at 11:36:24PM +0100, Stefan Gybas wrote:
> Michael Vogt wrote:
>
> > http-fetch.c uses a absolute-URI regardless if it connects to
> > a proxy or a host. This violates rfc1945:
> > "The absoluteURI form is only allowed when the request is
> > being made to a proxy." (Section 5.1.2).
>
> The request should include a Host: header when not using a proxy so this
> will also work with virtual hosts:
>
> snprintf(buf, sizeof buf - 1, "Host: %s\nGET /%s/%s HTTP/1.0\n\n",
> server_host, remote_path, remote_filename);
I don't think, that this is conform to rfc1945. If we close the request
with HTTP/1.0, we should really send out HTTP/1.0.
The "Host" Feature is HTTP/1.1 (see rfc2616, 14.23).
> Stefan Gybas
Michael
--
GPG Fingerprint = EA71 B296 4597 4D8B 343E 821E 9624 83E1 5662 C734
/"\ o
\ / ASCII RIBBON CAMPAIGN /|\
X AGAINST HTML MAIL >>
/ \ o
Reply to: