How to set proxy for wget?

后端 未结 13 1860
陌清茗
陌清茗 2020-12-02 03:38

I want to download something with wget using a proxy:

HTTP Proxy: 127.0.0.1
Port: 8080

The proxy does not need username and pa

相关标签:
13条回答
  • 2020-12-02 04:29

    If you need to execute wget just once with the proxy, the easiest way is to do it with a one-liner like this:

    http_proxy=http://username:password@proxy_host:proxy_port wget http://fileurl
    

    or with an https target URL:

    https_proxy=http://username:password@proxy_host:proxy_port wget https://fileurl
    
    0 讨论(0)
提交回复
热议问题