cURL / Mailing Lists / curl-library / Single Mail

curl-library

Image Downloads

From: Nishant Mittal <nmittal_at_cs.ucsd.edu>
Date: Sun, 17 Oct 2004 02:32:28 -0700

Hi All,

            I have been writing a small C program that uses libcurl to
download HTML pages (and images). I noticed that while pages downloaded very
quickly, images take a LOT of time. I then tried downloading images from the
command line tool and still it took a lot of time. Please see below.

 

$ curl http://www.foxnews.com/images/141599/1_14_101604_diamandis_peter.jpg
> pic.jpg

  % Total % Received % Xferd Average Speed Time
Curr.

                                 Dload Upload Total Current Left
Speed

  0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:--
0

100 163 100 163 0 0 5 0 0:00:31 0:00:31 0:00:00
40

$

 

As you can see the download took 31 secs. I tried the same thing with wget
and the download was less then 2 secs. I tried with several other images
(from Yahoo and CNN, with the same result)

 

Can someone tell me whats wrong ? Is there a problem with my installation ?

 

I appreciate all help on this.

 

Regards,

Nishant Mittal
Received on 2004-10-17