cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3542960 ] Curl omits the content body when > 1000 bytes

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 15 Jul 2012 13:07:18 -0700

Bugs item #3542960, was opened at 2012-07-12 03:47
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3542960&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
>Status: Pending
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Chandra Madhu (jpcm83)
Assigned to: Daniel Stenberg (bagder)
Summary: Curl omits the content body when > 1000 bytes

Initial Comment:
I am using CURL for my project testing. When i end curl request with content-length more than 1000 bytes, it omits the body and "Empty reply" . Please see the log below.
======================================================
* About to connect() to 10.20.5.9 port 443 (#0)
* Trying 10.20.5.9....
* connected
* Connected to 10.20.5.9 (10.20.5.9 port 443 (#0)
* successfully set certificate verify locations:
* CAfile: /usr/ssl/certs/ca-bundle.crt
  CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES256-SHA
* Server certificate:
[Data not shown]
> POST /remoteMgmt/setParameters HTTP/1.1
> User-Agent: curl/7.24.0 (i686-pc-cygwin) libcurl/7.24.0 OpenSSL/1.0.1 zlib/1.2
.5 libidn/1.22 libssh2/1.4.0
> Host: 10.20.5.9
> Accept: */*
> Content-Length: 1088
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
* Empty reply from server
* Connection #0 to host 10.232.65.116 left intact
curl: (52) Empty reply from server
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-07-15 13:07

Message:
I fail to see how this is a curl bug at all. If the body is larger than
1024 bytes it includes the "Expect: 100-continue" header. That's a HTTP 1.1
header and if your server stops working because of that header, it is a
broken HTTP implementation.

You can easily prevent curl from sending this header if you want.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3542960&group_id=976
Received on 2012-07-15

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET