cURL / Mailing Lists / curl-users / Single Mail

curl-users

Wget vs. Curl

From: Neels Lötter <neelslotter_at_gmail.com>
Date: Fri, 13 Apr 2012 10:12:58 +0200

Hi

We've decided to move from wget to curl. We've made use of wget to
determine download speeds on modems,
For some weird reason curl's speed_download is always slower( between 500k
and 1MB slower) than wget's indicated speed.

My curl options are: (Speed output is in Bytes)
 curl -x "" -s --connect-timeout 60 --max-time 300 --interface $LOCAL_IP
$FILE_URL -o /dev/null --write-out
'%{speed_download},%{url_effective},%{http_code},%{http_connect},%{time_total},%{time_namelookup},%{time_connect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{size_download},%{size_upload},%{size_header},%{size_request},%{speed_upload},%{content_type},%{num_connects},%{num_redirects},%{ftp_entry_path},'
>> download_log-$UNIT_ID-$PPP_INTERFACE.`date +%Y%m%d`

wget options : (Speed output in KB/s)
wget --inet4-only --no-proxy -c -t 3 -a
download_log-$UNIT_ID-$PPP_INTERFACE.`date +%Y%m%d` -O /dev/null
--dns-timeout=60 --connect-timeout=60 --read-timeout=60
--bind-address=$LOCAL_IP -i download_input

any ideas? maybe there is some additional parameter on curl that I can use?
Many thanks
Neels

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-13