NTLM proxy without password?

前端 未结 3 1200
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 12:58

I work on a corporate windows network (which I log in to) with a HTTP proxy. When I use Internet Explorer it magically uses the proxy without me needing to type in my passwo

3条回答
  •  Happy的楠姐
    2020-12-07 13:29

    Please note my edit contains an inaccurate assumption about -U and -u. I have submitted a correction, but in the interim note:

    curl -U = Authentication to a proxy
    curl -u = Authentication to a server
    

    Therefore, the first command should be:

    curl.exe -U : --proxy-ntlm --proxy myproxy.com:8080 http://www.google.com
    

    and the second one, in the example for transparent NTLM:

    curl -v -u : --ntlm [the redirection URL from Location: header]  
    

    Sorry about that!

提交回复
热议问题