cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP ping

From: Gonzalo Diethelm <gonzalo.diethelm_at_diethelm.org>
Date: Tue, 04 Dec 2007 09:50:35 -0300

Hello,

Using libcurl 7.16.4 on Ubuntu 7.10 and Windows XP SP2.

I need to verify whether the server I will download something from
(using HTTP / HTTPS) is accepting requests. What would be the best way
to do this with curl, so that it transmits as little data as possible
(both ways) and, in case of any failure (network not up, cannot resolve
host name, timeout, etc.) returns an error status as quickly as
possible?

Thanks and best regards,

-- 
Gonzalo Diethelm
gonzalo.diethelm_at_diethelm.org
Received on 2007-12-04