curl-library
Proxy issue
Date: Tue, 19 Oct 2004 10:07:25 +0200
Hi Daniel, hi all.
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.
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).
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
Expect: 100-continue
Then I've changed the Host header, so that it contains only the hostname,
instead of the whole 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?
Many thanks in advance,
Massimiliano
(See attached file: java.txt)(See attached file: curl.txt)
POST http://www.gvhub.biz:80/UnattendedB2B/UnattendedServer HTTP/1.0
Host: www.gvhub.biz
TE: trailers, deflate, gzip, compress
User-Agent: RPT-HTTPClient/0.3-3E
OSNAME: Windows 2000
Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
Content-type: multipart/form-data; boundary=--------ieoau._._+2_8_GoodLuck8.3-ds0d0J0S0Kl234324jfLdsjfdAuaoei-----
Content-length: 372
----------ieoau._._+2_8_GoodLuck8.3-ds0d0J0S0Kl234324jfLdsjfdAuaoei-----
Content-Disposition: form-data; name="ServiceRequest"
<ServiceRequest type="Login" ID="1098170867203_1098170867718"> <Username>ivsonda </Username> <Passwd>******** </Passwd><Version ID="1.0"/></ServiceRequest>
----------ieoau._._+2_8_GoodLuck8.3-ds0d0J0S0Kl234324jfLdsjfdAuaoei-------
HTTP/1.1 200 OK
Date: Tue, 19 Oct 2004 07:30:27 GMT
Server: IBM_HTTP_SERVER/1.3.26 Apache/1.3.26 (Unix)
Set-cookie: JSESSIONID=0000SXdmQuOD4x_N8IHLnxT9TzR:uut0quq5;Path=/
Cache-control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-type: text/html; charset=ISO-8859-1
Content-language: en
POST http://http:\\www.gvhub.biz\UnattendedB2B\UnattendedServer HTTP/1.0
Accept-Language: en-GB
OSNAME: WINDOWS
Host: www.gvhub.biz
Content-Length: 306
Content-Type: multipart/form-data; boundary=----------------------------57e684b41258
Connection: Close
Proxy-Connection: Close
------------------------------8a9ac64a647b
Content-Disposition: form-data; name="ServiceRequest"
<ServiceRequest type="Login" ID="1098170791_1098170791"> <Username>ivsonda </Username> <Passwd>******** </Passwd><Version ID="1.0"/></ServiceRequest>
------------------------------8a9ac64a647b--
HTTP/1.0 302 Found
Server: iPlanet-Web-Proxy-Server/3.6
Location: http://www.http.com/
Received on 2004-10-19