curl-users
Re: Curl fails with content lenght > 1023
Date: Mon, 16 Apr 2007 08:55:02 +0200 (CEST)
On Sat, 14 Apr 2007, junkmail_at_srjava.cjb.net wrote:
> I'm using curl to post a form to the server. I have found that when trying
> to submit a form with a content length of 1024 or greater curl dies. It
> gives the following error: "Received problem 2 in the chunky parser"
> Is there a workaround to this bug to submit a larger form payload?
I don't think this is a bug in curl but rather in the server. If you use
--trace-ascii or similar you might be able to see it yourself.
> Below is the output of 2 calls - the first has a content length= 1023 and
> works fine while the second with content length= 1024 fails.
>>
> < HTTP/1.1 100 Continue
> < Connection: close
As you can see, the "Expect: 100-continue" header is what differs between the
requests and clearly your server is having problems with it.
The proper fix is to contact the server admins, but a work-around could be to
use -H "Expect:" to disable curl's use of this header.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-04-16