Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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

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

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%
share|improve this answer
2  
-o output is required, otherwise the progress bar will not show up. This command can also be used for uploading files to MS SharePoint. – linasj Mar 11 '12 at 21:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.