cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: My last report was wrong Re: using upload/progress with limited rate

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 4 Jan 2004 13:40:27 +0100 (CET)

On Mon, 29 Dec 2003, Wei Weng wrote:

> > Can you provide a source code for an app that shows how to repeat this? I
> > can't think of any changes for 7.10.8 that would've changed this.
> >
> I basically ran the following command (through console):
>
> curl --upload-file /home/wweng/myfile --verbose --progress-bar --limit-rate
> 40k ftp://wweng:mypassword@localhost/Temp/myfile
>
> And you can see the progress-bar only jumps out when the whole process is
> finished.

This is not a good proof of a libcurl bug. When you run 'curl' to output the
results on stdout (the terminal) it will automaticly switch off the progress
bar so that it doesn't interfere with the output.

Try adding "-o foo" to the above command line and it works fine in my end.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2004-01-04