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