cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl Content-Length through proxy

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 24 Jan 2011 11:29:44 -0800

On Mon, Jan 24, 2011 at 06:13:53PM +0100, Fabian Keil wrote:
> Peter Sylvester <Peter.Sylvester_at_edelweb.fr> wrote:
> > 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?
>
> At least for me that seems to be the default:

IIRC, something like the Content-length: 0 behaviour was the default
a LONG time ago, like the 7.10.8 time frame. What version is this
happening on? Can you show us a command-line that exhibits this
behaviour, and debug logs if possible? And note that the size of
any input files can change the behaviour. See also
http://curl.haxx.se/docs/faq.html#My_HTTP_POST_or_PUT_requests_are

>>> Dan
-------------------------------------------------------------------
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-24