How do I make curl ignore the proxy? Setting $NO_PROXY doesn't seem to work for me.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With