cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl error - HTTP error before end of send, stop sending

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Apr 2013 13:54:17 +0200 (CEST)

On Tue, 30 Apr 2013, Rahul R wrote:

> While i was trying to upload data to cloud, i saw the error "HTTP error
> before end of send, stop sending" in curl debug logs.
>
> In my code i am checking for the error code returned by curl_easy_perform().
> If it's not CURLE_OK, only then this will be treated as error. In this case,
> the curl_easy_perform is returning CURLE_OK, hence the error could not be
> detected by my code.

Hm, if the transfer was indeed aborted prematurely then we should consider to
return some kind of error code to help the application to realize this.

Can you help us fix this?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-30