cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: POST XML exceed 1024 bytes?!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 7 Feb 2007 13:38:48 +0100 (CET)

On Wed, 7 Feb 2007, schawk_at_ms7.hinet.net wrote:

> I have been playing with the API using Curl and I am not sure where the
> limitation I am seeing is coming from, but I cannot put more than 1024
> chars, including the needed XML, into the the body of a page.
>
> Here is some output using curl -v with the tokens and text file content
> removed, first a failing case with exactly 1024 bytes, then a working case
> with 1023 bytes:

[...]

>> Content-Length: 1024
>> Content-Type: application/x-www-form-urlencoded
>> Expect: 100-continue
>>
> < HTTP/1.1 417 Expectation Failed

Right. The body of this request is not sent since the server rejects it. It is
hardly curl's fault.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-07