curl with proxy

Developer from somewhere

Problem: want to make a curl request using a proxy.

Solution:

  • Specify -x flag like in the example below ( assuming you have a proxy server running at localhost, on port 8080) :
curl -v -x http://localhost:8080 http://some.other.url