Linux settings wget download http /https proxy method

  
                

On Linux systems, users do not need any settings to download non-proxy using wget, but they need to be set up if they are downloaded. So how do you set up wget? Today Xiaobian will solve this problem for everyone.

Setting method:

a method, directly after the command parameters

wget command may be provided using the http proxy

wget http: //www.baidu.com/-e use_proxy=yes -e http_proxy=yourproxy.com:port

Downloading https files requires additional parameters.

wget --no-check-certificate https://www.google.com/\\

-e use_proxy=yes -e https_proxy=yourproxy.com:port ##Use https_proxy You can use the

parameter --no-check-certificate to not check the server's certificate.

If you are in trouble, you can set the http proxy proxy for the shell:

export http_porxy=yourproxy.com:port

export https_proxy=yourproxy.com:port< Br>

This way other programs can access the network through this proxy.

If wget does not require a proxy, you can cancel the proxy with the --no-proxy parameter.

Method 2, Setting in the configuration file

Setting the proxy in ~/.wgetrc

http_proxy = http://ip_or_domainname:80/

Ftp_proxy = http://ip_or_domainname:80/

use_proxy = on

wait = 15

Then wget http://ip/filename directly ok

This is the two methods for proxy download settings for wget. For users who have encountered this situation, choose a method that you like to set it up.

Copyright © Windows knowledge All Rights Reserved