Using proxies in wget and curl

Source: Internet
Author: User

command to use a proxy

Wget/curl all support the use of proxies

Wget-e "http_proxy=10.1.4.43:8080″proxy.mimvp.com

Curl-x 10.1.4.43:8080 proxy.mimvp.com

Environment variable Usage Proxy

Curl, wget also supports setting the proxy server to use with the environment variable http_proxy, as follows:

# Proxy Server used by this account
Http_proxy= "Http://mycache.mydomain.com:3128″
Export Http_proxy

If the proxy server requires a user name and password, simply add them to the URL.

For example: User name MyUser, password mypwd, add settings:

# Proxy server and username/password used by this account
http_proxy= "Http://myuser:[email Protected]:3128″
Export Http_proxy

Then directly wget proxy.mimvp.com or Curl proxy.mimvp.com, that is, through the agent to access the meter flapping agent


Using proxies in wget and curl

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.