cURL / Mailing Lists / curl-library / Single Mail


Re: How do I know the difference between connecting and downloading

From: Daniel Stenberg <>
Date: Sun, 4 Apr 2010 21:47:47 +0200 (CEST)

On Sat, 3 Apr 2010, Anthony Hernandez wrote:

> First time poster on a mailing list. I've read through them before, but
> never participated in one. Question is how could I know the difference
> between an actual download and an attempt to connect to a server. So far,
> my progress call back just stays at 0%, my writedata function is doing
> nothing, is that the best way to know? Is there another builtin way that
> I'm not aware of? Any help would be appreciated.

That's about the best way you can use to figure it out in run-time. After the
request you can use the timing info libcurl provides with curl_easy_getinfo().

List admin:
Received on 2010-04-04