curl-library
Re: libCurl + Multipart Post + Proxy (IPlanet)
Date: Mon, 5 Apr 2004 11:33:36 +0200
> ...
> The JAVA Application does exactly the same operations.
> I doubt that.
They should. One work, the other doesn't.
>These two traces clearly show that the "java.log" performs 4 POSTs anad
the
>"cpp.log" performs 2 POSTs.
The Java application does 4 posts 'couse it works. The CPP app fails on the
second post and exits.
>I could see that the java version didn't use the Expect: 100-continue.
Perhaps
>that is confusing your proxy? Try doing the request without it and see if
it
>makes a difference.
How can I say libcurl to not insert it?
Anyway, I've installed the PAROS proxy on my system. Chaining it with my
IPlanet proxy and
using it as proxy from my application everything works again.
It seems that:
* SQUID is able to talk to my proxy.
* Paros is able to talk to my proxy.
* HTTPClient (JAVA) is able to talk to my proxy.
In the beginning I thought it was a problem of my proxy, but now I'm not
sure anymore.
Anyway, I'll produce a test case as soon as possible.
Thank you,
Massimiliano Ziccardi
|--------+--------------------------------->
| | Daniel Stenberg |
| | <daniel-curl_at_haxx.se> |
| | Sent by: |
| | curl-library-bounces_at_co|
| | ol.haxx.se |
| | |
| | |
| | 05/04/2004 11.14 |
| | Please respond to |
| | libcurl development |
| | |
|--------+--------------------------------->
>----------------------------------------------------------------------------------------------------------|
| |
| To: libcurl development <curl-library_at_cool.haxx.se> |
| cc: |
| Subject: Re: libCurl + Multipart Post + Proxy (IPlanet) |
>----------------------------------------------------------------------------------------------------------|
On Mon, 5 Apr 2004 Massimiliano_Ziccardi_at_intesa.it wrote:
(curl-library-bounces is not an adress you should mail.)
> My application does two MULTIPART POSTs.
> The first one sends a small amount of in memory bytes.
> The seconds one sends a file (500KB).
>
> The JAVA Application does exactly the same operations.
I doubt that.
> I've trapped the communication between my JAVA application and the server
> and the communication between my CPP application and my server with
> ETHEREAL.
>
> I've used the function 'FOLLOW TCP STREAM' to save the result. The get
the
> whole communication of the JAVA version, I needed to follow 3 differents
> streams.
Now I get the feeling I'm about to start debugging your code/proxy.
These two traces clearly show that the "java.log" performs 4 POSTs anad the
"cpp.log" performs 2 POSTs.
For the two posts that are present in the cpp.log file, they look pretty
similar to the ones in the java.log. You could probably see this by
yourself
as well.
I could see that the java version didn't use the Expect: 100-continue.
Perhaps
that is confusing your proxy? Try doing the request without it and see if
it
makes a difference.
I fail to see how libcurl is doing anything wrong here. Can you?
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-04-05