cURL / Mailing Lists / curl-library / Single Mail

curl-library

Detect if HTTP request has been reached server or not

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

Hello,

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
"CURLE_COULDNT_CONNECT".

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

Thank a lot.

Kind Regards
Marco

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-07-03