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]

Reply via email to