curl-library
Re: check internet connection with curl
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 23 Apr 2008 10:40:41 -0700
Date: Wed, 23 Apr 2008 10:40:41 -0700
On Wed, Apr 23, 2008 at 04:36:25PM +0200, Meir Yanovich wrote:
> Hello all
> is there simple way to check internet connection with curl lib before
> starting curl curl_easy_perform ?
Sure, start another connection to the server with another easy handle and
if that fails, your connection is down :)
Seriously, there's other way to tell when the "Internet connection" is down.
There are often platform-specific ways to tell if the local Ethernet cable
is unplugged, but what if the machine is getting its Internet via PPP?
Or 802.11? Or ARCnet? Or RFC1149? Or all five for redundancy?
Also read today's thread called "Cable Unplugged!".
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-04-23