I'm using wget to upload files using the POST method. Sometimes the file is quite big. Is there a way to show the progress, like it does with download?

link|improve this question
feedback

migrated from stackoverflow.com Jun 24 '11 at 7:01

This question came from our site for professional and enthusiast programmers.

1 Answer

wget does not have a progress bar for file uploads, bur curl does. Use the -T to specify the file, and -# to specify that you want a progress bar. Here is an example:

$ dd if=/dev/zero of=file count=4068
4068+0 records in
4068+0 records out
2082816 bytes (2.1 MB) copied, 0.0459911 seconds, 45.3 MB/s
$ curl -T file -# -o output http://pastebin.com/
######################################################################## 100.0%
link|improve this answer
1  
-o output is required, otherwise the progress bar will not show up. This command can also be used for uploading files to MS SharePoint. – user1163183 Mar 11 at 21:56
feedback

Your Answer

 
or
required, but never shown