cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: check internet connection with curl

From: Gary Maxwell <gmaxwell_at_casabi.com>
Date: Thu, 24 Apr 2008 09:50:01 -0700

Meir Yanovich wrote:
>
> thanks for the explanation about pings.
> what about doing ping to one major site like google.com
> and according to the result determine if im online or not .
> the reason i need this check is that the client need to preform his
> best guess when there is
> internet connection after loosing connection .
>
And performing a curl operation isn't good enough to determine if you
have a good connection? Why not?

Once again, ping is unreliable for what you want. The ping may fail even
if your connection is fine.

-Gary
Received on 2008-04-24