cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Can't post with Content-Length longer than 1024 bytes

From: liofc leaveiton <leaveiton_at_gmail.com>
Date: Sun, 17 Feb 2008 19:56:22 -0700

I fixed this problem.

Got lucky, first attempt did it.

I modified file http.h, under the lib directory.

I changed TINY_INITIAL_POST_SIZE from 1024 to (64*1024), and the problem was
fixed.

I'm not saying this mod should be put in the release version of curl, but it
did the trick for me!

Cheers.

On Feb 17, 2008 5:13 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sat, 16 Feb 2008, Dan Fandrich wrote:
>
> > If the server sends a 417 error code, curl ought to resend the request
> > without the 100-continue header. If it's not doing this, curl ought to
> be
> > fixed.
>
> I'm not so sure. The 417 code means that "Expectation Failed" which I
> interpret that the server deemed that something in the request made it not
> allowed to continue, so just removing the Expect: header and doing the
> request
> again would thus just get a failure again although a bit later in the
> process
> than with the header present.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2008-02-18