Using a proxy under the Linux command line

Source: Internet
Author: User
Tags network function

There are two ways of doing this:

1. Curl - x<proxy_ip>:<proxy_port> <real_website>

Example: Curl - x12.99.109.52:8080 http://developer.baidu.com/map/

Represents the access to the extranet address through the 8080 port of the proxy 12.99.109.52 http://developer.baidu.com/map/

2, wget - E "http://<proxy_ip>:<proxy_port>/" <real_website>

Example: wget - E "http://12.99.109.52:8080/" http://developer.baidu.com/map/


Through the agent, in the LAN network can not access the machine through the proxy indirect access to the external network!! can also be used to test the configuration of the proxy server is successful!! Very good command!!

Both of these methods can be implemented by proxy access to the external network function, slightly different is wget will be the results directly in the form of files stored in the current directory in the file, not on the screen, curl is directly on the screen to display the results of the response, will not be saved as a file ....

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Using a proxy under the Linux command line

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.