[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [patch] dbootstrap/http-fetch



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);

-- 
Stefan Gybas



Reply to: