Re: [patch] Re: [patch] dbootstrap/http-fetch
On Tue, Apr 11, 2000 at 11:23 +0200, Marcel Harkema wrote:
> On Thu, Apr 06, 2000 at 12:14 +1200, Mark van Walraven wrote:
>
> > Certainly, leaving out a Host header breaks virtual hosts, so I would
> > like it included in the request. Patch below; I will build another
>
> > snprintf(buf, sizeof buf - 1,
> > - "GET /%s/%s HTTP/1.0\n\n", remote_path, remote_filename);
> > + "GET /%s/%s HTTP/1.0\nHost: %s\n\n",
> > + server_host, remote_path, remote_filename);
>
> Don't worry, not blindly (parameter ordering).
Added, incl. server_port.
Reply to: