cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl Content-Length through proxy

From: Peter Sylvester <Peter.Sylvester_at_edelweb.fr>
Date: Wed, 26 Jan 2011 15:27:50 +0100

On 01/24/2011 06:02 PM, Peter Sylvester wrote:
> Hi,
>
> When using curl with a proxy and a POST, it seems that curl
> starts sending Content-length: 0 in order to detect somehow
> whether the proxy requires some authentication.
>
> Is there a way to avoid this, i.e. to send the real Content-Length
> immediately?

I reply to myself since ...

The problem was an invalid filename in --data-binary @?????
which creates an empty post. I didn't see immediately the

Warning: Couldn't read data from file "??????", this makes an empty
Warning: POST.

Sorry for bothering
Peter Sylvester
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-26