curl-library
Re: check internet connection with curl
Date: Fri, 25 Apr 2008 20:56:48 +0200
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?
On Fri, Apr 25, 2008 at 8:37 AM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Fri, Apr 25, 2008 at 08:18:46AM +0200, Meir Yanovich wrote:
> > ok i notice that simple doing:
> > curl = curl_easy_init();
> > it gives me cull == false when there is no internet connection
> > can i base my check in that ?
>
> If curl_easy_init() returns NULL, then, for whatever reason, you cannot use
> libcurl. But there is no guarantee that when it returns != NULL that your
> Internet connection is up.
>
>
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
Received on 2008-04-25