Proxy Settings for Windows 7 Command Prompt Proxy Settings for Windows 7 Command Prompt curl curl

Proxy Settings for Windows 7 Command Prompt


You can set your proxy using a set command in windows:

set http_proxy=http://<yourproxyaddress>:<port>

Then you can connect your curl requests to external sites.


Some proxies require specific authentication headers to be set, so be aware of those as well. In my case, it's --proxy-ntlm in the example below:

curl -x webproxy.net:8080 -U usernaname:password http://google.com --proxy-ntlm

But there're other options:

--proxy-digest and --proxy-negotiate

Lastly, cURL has a super friendly doc page, so be sure to check it out.