How to set proxy for wget?

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

    wget uses environment variables somthing like this at command line can work:

    export http_proxy=http://your_ip_proxy:port/
    export https_proxy=$http_proxy
    export ftp_proxy=$http_proxy
    export dns_proxy=$http_proxy
    export rsync_proxy=$http_proxy
    export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
    

提交回复
热议问题