curl-library
Re: Proxy issue
Date: Tue, 19 Oct 2004 10:27:51 +0200 (CEST)
On Tue, 19 Oct 2004 Massimiliano_Ziccardi_at_intesa.it wrote:
> I write you again about an old proxy issue I found with libcurl: the new
> version of libcurl (7.12.2) gives me a '302 temporarily moved' error.
Given that weird URL, I'm not surprised.
> Attached you'll find the communication I trapped with the paros proxy
> (chained with my real proxy) for the CURL version and the JAVA version of my
> app (the JAVA version works).
They use very different URLs, so I don't see the relevance in this comparison.
> As you'll see, I've took away some header from the curl header to make it as
> similar as possible to the JAVA one.
>
> Actually, I've took away:
> Pragma: no-cache
> Accept: */*
> Accept-Language: en-GB
libcurl never sends "Accept-Language" on its own.
> Then I've changed the Host header, so that it contains only the hostname,
> instead of the whole URL.
The Host: header should always contain only the host name, and everything else
is a bug (except for a port number of a non-standard port is used).
I believe you get a bad Host: header because you use that bad URL.
> I've not been able to take away the Connection and the Proxy-Connection
> header (even if I try, libcurl inserts them anyway): do I have a way to do
> it?
No, libcurl doesn't add those.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-10-19