performing HTTP requests with cURL (using PROXY)

user873286 picture user873286 · Feb 25, 2012 · Viewed 973.2k times · Source

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

Karl Barker picture Karl Barker · Feb 25, 2012

From man curl:

-x, --proxy <[protocol://][user:password@]proxyhost[:port]>

     Use the specified HTTP proxy. 
     If the port number is not specified, it is assumed at port 1080.