cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: using libcurl for HTTP PUT -> but curl_easy_perform always returns CURLE_OK

From: Pit Müller <fmi-soft_at_gmx.de>
Date: Wed, 04 Jul 2012 10:34:51 +0200

Am 03.07.2012 22:54, schrieb Dan Fandrich:
> On Tue, Jul 03, 2012 at 05:35:33PM +0200, Pit Müller wrote:
>> What is the official way for error handling here?
>> Should i generally ignore the return value and always check only
>> CURLINFO_RESPONSE_CODE?
> There are two levels of possible errors here: at the network level and
> at the HTTP level. The return value will tell you about any network
> level or configuration problems, while CURLINFO_RESPONSE_CODE will tell
> you about any higher-level problems. You can use the
> CURLOPT_FAILONERROR option to make libcurl convert some HTTP errors
> into CURLE-type errors, but read about the caveats first.
>
>>>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
>
Ok, i will try that.
Thank you!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-04