Cababunga's answer is correct, but they do not have another option: --proxy-ntlm . Some proxies will not correctly resolve with --proxy-anyauth , so ideally you want to specify the authentication method used by your proxy server. If you run curl -v -U user:pass -x proxy:port --url http://www.google.com , you should get something in the following lines:
- About connecting () to the proxy [your proxy] port [your port] (# 0)
- Attempting [IP] ...
- connected
- Connected to the port [your proxy] ([IP]) [your port] (# 0)
- Install the HTTP proxy tunnel at www.google.com:443
- Proxy using Basic with user '[user]'
- CONNECT www.google.com-00-0043 HTTP / 1.1
- Host: www.google.com-00-0043
- Proxy Authorization: Basic [gibberish]
- User-Agent: curl / [ver] ([OS]) libcurl / [ver] OpenSSL / [ver] zlib / [ver]
- Proxy Connection: Keep-Alive
- HTTP / 1.1 407 Proxy authentication required
- Proxy Authentication: NEGOTIATE
- Proxy Authentication: NTLM
Add a flag for what you see in the Proxy-Authenticate parameter, and you should be good to go. In this example, you would add the --proxy-ntlm .
Micah
source share