cURL / Mailing Lists / curl-library / Single Mail

curl-library

libCurl + Multipart Post + Proxy (IPlanet)

From: <Massimiliano_Ziccardi_at_intesa.it>
Date: Thu, 1 Apr 2004 13:43:50 +0200

Hi all!

I've developed an application based on libcurl.

I've two network environment:

1) libcurl ------> SQUID Proxy ------> IPlanet Proxy ------> Internet
2) libcurl ------> IPlanet Proxy -----> Internet

I use Visual Studio 6 on a Windows 2000 with libcurl 7.11.

My applications perform 2 operations in the following order:

1) POST
2) MULTIPART POST

Both the requests goes to the same internet address through the same proxy.
The protocol is HTTP (not HTTPS).

If I work with the first environment (through the SQUID PROXY) everything
works.

If I work with the second environment (directly through the IPlanet Proxy)
the MULTIPART POST returns with an Empty Reply from server.

If I do exactly the same operations with HTTPClient (an HTTP client library
for JAVA) everything works.

Here is what I see if I turn on VERBOSE:

* About to connect() to proxy.intesa.it port 8080
* Connected to proxy.intesa.it (193.42.232.110) port 8080
> POST http://151.92.158.80/UnattendedB2B/UnattendedServer HTTP/1.1
Host: 151.92.158.80
Pragma: no-cache
Accept: */*
Accept-Language: en-GB
OSNAME: WINDOWS
Content-Length: 306
Expect: 100-continue
Content-Type: multipart/form-data; boundary
=----------------------------a8cadb11
72fd

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Thu, 01 Apr 2004 11:37:40 GMT
< Server: IBM_HTTP_SERVER/1.3.26 Apache/1.3.26 (Unix)
* Added cookie JSESSIONID="0001lxawwTa12DTHeeoZ_RLMu53:uq4iggaq" for domain
151.
92.158.80, path /, expire 0
< Set-Cookie: JSESSIONID=0001lxawwTa12DTHeeoZ_RLMu53:uq4iggaq;Path=/
< Cache-Control: no-cache="set-cookie,set-cookie2"
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=ISO-8859-1
< Content-Language: en
* Connection #0 left intact
* Re-using existing connection! (#0)
* Connected to (193.42.232.110) port 8080
> POST http://151.92.158.80/UnattendedB2B/UnattendedServer HTTP/1.1
Host: 151.92.158.80
Pragma: no-cache
Accept: */*
Cookie: JSESSIONID=0001lxawwTa12DTHeeoZ_RLMu53:uq4iggaq
Accept-Language: en-GB
OSNAME: WINDOWS
Content-Length: 856
Expect: 100-continue
Content-Type: multipart/form-data; boundary
=----------------------------b6572cb5
5dc9

* Empty reply from server
* Connection #0 left intact
* Connection 0 seems to be dead!
* Closing connection #0
* About to connect() to proxy.intesa.it port 8080
* Connected to proxy.intesa.it (193.42.232.110) port 8080
> POST http://151.92.158.80/UnattendedB2B/UnattendedServer HTTP/1.1
Host: 151.92.158.80
Pragma: no-cache
Accept: */*
Cookie: JSESSIONID=0001lxawwTa12DTHeeoZ_RLMu53:uq4iggaq
Accept-Language: en-GB
OSNAME: WINDOWS
Content-Length: 856
Expect: 100-continue
Content-Type: multipart/form-data; boundary
=----------------------------3798b055
c462

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Thu, 01 Apr 2004 11:38:04 GMT
< Server: IBM_HTTP_SERVER/1.3.26 Apache/1.3.26 (Unix)
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=ISO-8859-1
< Content-Language: en
* Connection #0 left intact
* Re-using existing connection! (#0)
* Connected to (193.42.232.110) port 8080
> POST http://151.92.158.80/UnattendedB2B/UnattendedServer HTTP/1.1
Host: 151.92.158.80
Pragma: no-cache
Accept: */*
Cookie: JSESSIONID=0001lxawwTa12DTHeeoZ_RLMu53:uq4iggaq
Accept-Language: en-GB
OSNAME: WINDOWS
Content-Length: 257
Expect: 100-continue
Content-Type: multipart/form-data; boundary
=----------------------------cc16a5e7
b8a6

* Empty reply from server
* Connection #0 left intact

Could you please help me?

Thank you in advance,
     Massimiliano Ziccardi
Received on 2004-04-01