cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Doubt in CURLOPT_TIMEOUT and CURLOPT_NOSIGNAL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Feb 2011 00:55:57 -0800

On Tue, Feb 22, 2011 at 02:13:11PM +0530, chirayu joshi wrote:
> If i sent the request to webserver from client and i want to check
> whether the webserver is working or not. Then CURLOPT_TIMEOUT and
> CURLOPT_CONNECTTIMEOUT does not have any significance so as to check
> whether webserver is working or not and if this is the case then which
> is the method that will help me out to check whether webserver is
> working or not.

curl_easy_perform() returns an error code relating to the success of
the transfer. That code will indicate whether or not a timeout was hit.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-22