How to set proxy for wget?

后端 未结 13 1857
陌清茗
陌清茗 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:14

    For all users of the system via the /etc/wgetrc or for the user only with the ~/.wgetrc file:

    use_proxy=yes
    http_proxy=127.0.0.1:8080
    https_proxy=127.0.0.1:8080
    

    or via -e options placed after the URL:

    wget ... -e use_proxy=yes -e http_proxy=127.0.0.1:8080 ...
    

提交回复
热议问题