cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: HTTPS POST (error 400 ) fails when data greater than 1 KB

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 13 Oct 2009 04:29:20 +0200 (CEST)

On Wed, 7 Oct 2009, mini thomas wrote:

> We are sending an https request to the server using curl APIs with 5 KB of
> post data. We are getting an error with status code 400 - (bad request). We
> can see the hit in the server and server failing to read the complete post
> data. The same application is working fine in other networks.     We also
> tried using curl command line, we are hitting the same issue. If we reduce
> the size of the data, things are working fine from both curl command line
> and from the application.

This sounds like the server is one of them being confused by the Expect: 100-
continue header which libcurl sends conditionally depending on POST size.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-13

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET