cURL / Mailing Lists / curl-library / Single Mail


RE: check internet connection with curl

From: Gary Maxwell <>
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
> 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.

Received on 2008-04-24