curl-library
Re: File not found error in https
From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 1 Apr 2019 14:53:29 -0400
Date: Mon, 1 Apr 2019 14:53:29 -0400
On 4/1/2019 9:36 AM, sandeep kotta via curl-library wrote:
> How can I be able to catch 404 (File not found) error in case of
> http/https using libcurl?
> I have found that we will get CURLE_HTTP_RETURNED_ERROR when the
> option CURLOPT_FAILONERROR is used. Is there any way to get the exact
> http error instead?
Use CURLINFO_RESPONSE_CODE [1].
[1]: https://curl.haxx.se/libcurl/c/CURLINFO_RESPONSE_CODE.html
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-04-01