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

前端 未结 6 2068
一向
一向 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:28

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

    works for curl version 7.19.5 on Ubuntu 9.10 (no progress bar). But if for some reason that does not work on your platform, you could always redirect stderr to /dev/null:

    curl  http://google.com 2>/dev/null > temp.html
    

提交回复
热议问题