cURL / Mailing Lists / curl-library / Single Mail


Detect if HTTP request has been reached server or not

From: Marco Strohner <>
Date: Tue, 3 Jul 2012 08:39:11 +0200


I'm using the easy interface of curl in a client application.

In this client application I would like to detect if the HTTP request is
lost during sending or if the response from the server is lost when the
client disconnects (e.g. disabling the network adapter).

Two "visual" examples:

The HTTP request has been lost

Client Server
-----> xxx

The HTTP repsonse has been lost

Client Server
        xxx <----

For both scenarios the return value of curl_easy_perform() is

Are there any other possibilities to check at which state the disconnect
has been occured?

Thank a lot.

Kind Regards

List admin:

Received on 2012-07-03