cURL / Mailing Lists / curl-library / Single Mail


Re: check internet connection with curl

From: Nikolai Kondrashov <>
Date: Fri, 25 Apr 2008 10:32:49 +0400

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 ?
Nope. The return value of curl_easy_init should not depend on your Internet
connection state. It, basically, allocates memory for storing request
parameters and state and initializes it.

Received on 2008-04-25