Bug#342828: progressbar for upload
On Wed, 1 Mar 2006, Vincent Fourmond wrote: Sorry that I reply so late. There is my problem: the progress bar does work fine with the -T command-line option. Unfortunately, I'm uploading files via a form, in which case I'm using arguments in the type of -F 'userfile$i=$val;type=image/jpeg' And in this case, for a POST operation, the progress starts to display only at the end of the upload... So I only get it for the download, which is the fastest part of the operation - not too useful ;-) ! Allow me to do the long rant: When you do HTTP requests, you get data _back_ in a response. It is the same both for GET and for POST as all kinds of requests are (likely) to provide data back. curl displays data in the terminal by default. If you invoke curl to do an operation and it is about to write data to the terminal, it _disables_ the progress meter as otherwise it'd mess up the output with mixed progressbar/response data. So if you want a progress meter for HTTP POST requests, you need to redirect the response output to a file, using shell redirect (>), -o [file] or similar. As I showed before in this thread, this is not the same case for FTP upload as that operation is not spitting out any response data. -- -=- Daniel Stenberg -=- http://daniel.haxx.se -=- ech`echo xiun|tr nu oc|sed 'sx\([s\x]\)\([\xoi]\)xo un\2\1 is xg'`ol -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#342828: progressbar for upload
Hello ! >>$ curl -T README ftp://username:[EMAIL PROTECTED]/tmp/ >> % Total% Received % Xferd Average Speed TimeTime Time >> Current >> Dload Upload Total SpentLeft >> Speed >>100 30330 0 100 3033 0 9280 --:--:-- --:--:-- --:--:-- >>0 >> >>I call that a progress meter. What am I missing? >> >> > >surely it is not graphical :) > >Vincent, is this enough for you? may i close the bug report? > > Sorry that I reply so late. There is my problem: the progress bar does work fine with the -T command-line option. Unfortunately, I'm uploading files via a form, in which case I'm using arguments in the type of -F 'userfile$i=$val;type=image/jpeg' And in this case, for a POST operation, the progress starts to display only at the end of the upload... So I only get it for the download, which is the fastest part of the operation - not too useful ;-) ! Hope that helps Vincent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#342828: progressbar for upload
On Wed, Dec 21, 2005 at 01:46:39PM +0100, Daniel Stenberg wrote: > $ curl -T README ftp://username:[EMAIL PROTECTED]/tmp/ > % Total% Received % Xferd Average Speed TimeTime Time > Current > Dload Upload Total SpentLeft > Speed > 100 30330 0 100 3033 0 9280 --:--:-- --:--:-- --:--:-- > 0 > > I call that a progress meter. What am I missing? surely it is not graphical :) Vincent, is this enough for you? may i close the bug report? cheers domenico -[ Domenico Andreoli, aka cavok --[ http://people.debian.org/~cavok/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#342828: progressbar for upload
$ curl -T README ftp://username:[EMAIL PROTECTED]/tmp/ % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 30330 0 100 3033 0 9280 --:--:-- --:--:-- --:--:-- 0 I call that a progress meter. What am I missing? -- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]