curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Detection of failed connection

From: Ali Nasir via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 3 Jan 2024 13:47:04 +0530

Dear libcurl users,

I am trying to upload a file to an end point using multi interface. Example
code used is https://curl.se/libcurl/c/postit2.html
However, i see that when the server is down, there is no error reported
from any of the curl interfaces.

If i perform the same operation via the curl command from the shell, i get
the return code as 7. But all the multi interfaces like info_read and
mulit_perform return CURLE_OK.
Can anyone guide how to detect failures with libcurl. Specially when the
server is down.

Regards,
Ali


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-01-03