cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Host: header

From: Jamie Lokier <jamie_at_shareable.org>
Date: Tue, 24 Aug 2004 06:13:16 +0100

Roman Koifman wrote:
> GET [1]http://one.domain/path HTTP/1.1
>
> Host:one.domain
>
> GET [2]http://another.one HTTP/1.1
>
> Host:one.domain
>
> GET [3]http://ad.another.one HTTP/1.1
>
> Host:one.domain

Although this is evidently a bug in libcurl, it will still work with
any HTTP/1.1-compliant web server. When a host is given in the GET
line, it overrides the value of the Host header.

-- Jamie
Received on 2004-08-24