How do I make curl ignore the proxy?

后端 未结 12 1630
别跟我提以往
别跟我提以往 2021-01-30 03:01

How do I make curl ignore the proxy? Setting $NO_PROXY doesn\'t seem to work for me.

12条回答
  •  独厮守ぢ
    2021-01-30 03:27

    I assume curl is reading the proxy address from the environment variable http_proxy and that the variable should keep its value. Then in a shell like bash, export http_proxy=''; before a command (or in a shell script) would temporarily change its value.

    (See curl's manual for all the variables it looks at, under the ENVIRONMENT heading.)

提交回复
热议问题