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