Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Performing HTTP requests with cURL (using PROXY)

I have this proxy address: 125.119.175.48:8909

How might I play out a HTTP demand utilizing cURL like curlt example.com, yet indicating the proxy address of my network?
by

2 Answers

ninja01
General way:

export http_proxy=<proxy url>

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

And, as per comment below, for https:

export https_proxy=<proxy url serverport>/
kshitijrana14
Depending on your workplace, you may also need to specify the -k or the --insecure option for curl in order to get past potential issues with CA certificates.
curl -x <myCompanyProxy>:<port> -k -O -L <link to file to download>

Login / Signup to Answer the Question.