How to set proxy for wget?

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

    In Debian Linux wget can be configured to use a proxy both via environment variables and via wgetrc. In both cases the variable names to be used for HTTP and HTTPS connections are

    http_proxy=hostname_or_IP:portNumber
    https_proxy=hostname_or_IP:portNumber
    

    Note that the file /etc/wgetrc takes precedence over the environment variables, hence if your system has a proxy configured there and you try to use the environment variables, they would seem to have no effect!

提交回复
热议问题