Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make curl ignore the proxy?

Tags:

curl

How do I make curl ignore the proxy? Setting $NO_PROXY doesn't seem to work for me.

like image 229
ksuralta Avatar asked Apr 29 '09 03:04

ksuralta


People also ask

Does Curl go through proxy?

To use a proxy with Curl, you must pass the required proxy address using the -x (or --proxy) command-line option and proxy credentials using the -U (or --proxy-user) command-line switch. Proxy credentials may also be passed in the proxy string and will be URL decoded by Curl.

How do I curl behind a proxy?

Simply set the variables http_proxy to http proxy address and https_proxy to set https proxy address. Open terminal and run these two commands. After running these two commands, run curl normally. If you see SSL Certificate errors, add -k to ignore these errors.


1 Answers

If your curl is at least version 7.19.4, you could just use the --noproxy flag.

curl --noproxy '*' http://www.stackoverflow.com 

From the manual.

like image 76
Scott Offen Avatar answered Nov 28 '22 12:11

Scott Offen