cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET