Wednesday, June 27, 2018

linux - performing HTTP requests with cURL (using PROXY)



I have this proxy address: 125.119.175.48:8909



How can I perform a HTTP request using cURL like curl http://www.example.com, but specifying the proxy address of my network?


Answer




General way:



export http_proxy=http://your.proxy.server:port/


Then you can connect through proxy from (many) application.



And, as per comment below, for https:



export https_proxy=https://your.proxy.server:port/


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...