cURL / Mailing Lists / curl-library / Single Mail

curl-library

Host: header

From: Roman Koifman <rkoifman_at_finjan.com>
Date: Sun, 22 Aug 2004 11:37:27 +0300

Hi,

I am using the libcurl in some proxy testing application.
I open one connection (HTTP/1.1) and then try to receive few different URLs using the same connection.

Everything works just fine with one exception. The connection traffic looks like this :

--------------------------------------------------------------------------------------------------------

GET http://one.domain/path HTTP/1.1
Host:one.domain

GET http://another.one HTTP/1.1
Host:one.domain

GET http://ad.another.one HTTP/1.1
Host:one.domain

--------------------------------------------------------------------------------------------------------

The problem in the "Host:" header which remains the same since the CreateConnection() (url.c) .

Can I just set the conn->host in the Curl_setopt() CURLOPT_URL operation ?

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

*****************************
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-22