cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Host: header

From: Roman Koifman <rkoifman_at_finjan.com>
Date: Tue, 24 Aug 2004 09:45:37 +0300

When a server receives the request the host is not given in the GET line.
the GET looks like :

GET /path HTTP/1.1
Host: hostname.

The GET line contains the host only in the proxy requests.

Roman

------------------------------------------------------------------------------------
-- A false sense of security is worse than a true sense of insecurity.

-----Original Message-----
From: Jamie Lokier [mailto:jamie_at_shareable.org]
Sent: Tuesday, August 24, 2004 8:13 AM
To: libcurl development
Subject: Re: Host: header

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

*****************************
Finjan Software

This e-mail and any attached files are confidential and may be legally
privileged. The unauthorized use, disclosure or copying of this email or
any information contained within it is strictly prohibited. This also
confirms that Finjan Software's Vital Security for E-Mail has scanned this
message for the presence of known viruses and potentially malicious
code.

Finjan Software - Prevention is the Best Cure!
*****************************
Received on 2004-08-24