tags:

views:

351

answers:

2

Hi,

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

Thanks, Kenneth

A: 

Long shot but try setting the proxy to "" (empty string) that should override any proxy settings according to the man page.

jim
+1  A: 

I assume curl is reading the proxy address from the environment variable "http_proxy" and that the variable should keep its value. Then in a shell like bash, "export http_proxy='';" before a command (or in a shell script) would temporarily change its value.

(See curl's manual for all the variables it looks at, under the "ENVIRONMENT" heading.)

Anonymous