curl-users
speed-time / speed-limit not work & manual page and help page say oppostite switch use?
Date: Fri, 11 Oct 2002 23:26:14 +0100
using curl 7.9.8
Background as to what I am trying to achieve
[ I am POSTing form data and getting a page back, however its huge, I only want to POST the data & know it sent ok.
I tried using range ( -r -99) to say get first few bytes back however although site is http/1.1 only returns full page contents - no good.]
Next I try to use the speed limit.
According to man page (curl -M)
"
To have curl abort the download if the speed is slower than 3000 bytes per
second for 1 minute, run:
curl -y 3000 -Y 60 www.far-away-site.com
"
I do -y 9999999 -Y 1 to make it abort in 1 second no matter what xfer speed, this has no effect i still get total page slowly.
However if i read the help page (curl --help)
"
-y/--speed-time Time needed to trig speed-limit abort. Defaults to 30
-Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs
"
These swtiches are opposite way around to the man page ??
So i try
curl -y 1 -Y 9999999 www.far-away-site.com
and this also gets full page and no abort
Why are the switches back to front? , which is correct ?
Does it not work or am I missing somehting obvious? Any other ways to achieve my solution?
(cannot use -m as connection is slow etc and can timeout b4 form POSTs correctly)
Thankyou
Rich
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-12