How do I make curl ignore the proxy?

后端 未结 12 1514
别跟我提以往
别跟我提以往 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:19

    Add your proxy preferences into .curlrc

    proxy = 1.2.3.4
    noproxy = .dev,localhost,127.0.0.1
    

    This make all dev domains and local machine request ignore the proxy.

提交回复
热议问题