How do I get cURL to not show the progress bar?

前端 未结 6 2058
一向
一向 2020-12-04 05:23

I\'m trying to use cURL in a script and get it to not show the progress bar.

I\'ve tried the -s, -silent,

6条回答
  •  自闭症患者
    2020-12-04 05:53

    In curl version 7.22.0 on Ubuntu and 7.24.0 on OSX the solution to not show progress but to show errors is to use both -s (--silent) and -S (--show-error) like so:

    curl -sS http://google.com > temp.html
    

    This works for both redirected output > /some/file, piped output | less and outputting directly to the terminal for me.

提交回复
热议问题