How do I make curl ignore the proxy?

ksuralta picture ksuralta · Apr 29, 2009 · Viewed 235.9k times · Source

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

Answer

Scott Offen picture Scott Offen · May 21, 2012

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.