Linux wget download Http/https proxy settings

Source: Internet
Author: User

Method one, with parameters directly behind the command


Use the wget command to set up an HTTP proxy


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

Other additional parameters are necessary for downloading HTTPS files.


wget--no-check-certificate https://www.google.com/\
-e use_proxy=yes-e Https_proxy=yourproxy.com:port # #使用https_proxy才可以哟

Parameter--no-check-certificate can not check the server's certificate.

If you're having trouble, you can proxy the shell for HTTP proxy settings:


Export Http_porxy=yourproxy.com:port
Export Https_proxy=yourproxy.com:port

This allows other programs to access the network via this agent.

If wget does not require a proxy to cancel the agent using the parameter--no-proxy.


method Two, setting in the configuration file

Setting up agents in ~/.WGETRC
Http_proxy = http://ip_or_domainname:80/
Ftp_proxy = http://ip_or_domainname:80/
Use_proxy = On
wait = 15

And then straight wget Http://ip/filename's OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.