curl-library
Re: check internet connection with curl
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 25 Apr 2008 12:07:19 -0700
Date: Fri, 25 Apr 2008 12:07:19 -0700
On Fri, Apr 25, 2008 at 08:56:48PM +0200, Meir Yanovich wrote:
> ok so why every time im disconnect from the net
> im getting curl_easy_init == NULL ?
> and when im connecting back every thing is fine
> is there any resone ? maybe something in the curl config's?
As part of curl_easy_init, Winsock is initalized. If that fails, for
whatever reason, then it will return NULL. It seems that whatever you are
doing to disconnect your machine from the net is detected by Winsock as
an error.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-04-25