Skip to content

Instantly share code, notes, and snippets.

@rafamdr
Last active April 12, 2021 11:14
Show Gist options
  • Select an option

  • Save rafamdr/65f2335ea86d4f3d3334903bbaa7079e to your computer and use it in GitHub Desktop.

Select an option

Save rafamdr/65f2335ea86d4f3d3334903bbaa7079e to your computer and use it in GitHub Desktop.
curl with progress bar
curl --progress-bar \
-o sending_output.txt \
[email protected] \
https://sitetest.io/upload
# If you want a progress meter for HTTP POST or PUT requests, you need to redirect the response output to a file,
# using shell redirect (>), -o [file] or similar.
# Source: https://stackoverflow.com/questions/9973056/curl-how-to-display-progress-information-while-uploading#answer-39302427:~:text=I%20had%20trouble%20with%20the%20accepted%20answer's%20command%20redirection%20and%20found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment