Using Libcurl to authenticate ntlm proxy without pass

旧街凉风 提交于 2019-12-12 06:03:32

问题


i'm testing some network simple process to understand better and know how to work with NTLM.

Following this (ntlm-proxy-without-password) Q&A i found hot to uthenticate my transaction via ntml using the log information of the current user.

The command is this: curl.exe -U : --proxy-ntlm --proxy myproxy.com:8080 http://www.google.com

Know i have to do the same thing using libcurl since i need to achieve that result into the application i'm developing. There is a way to do this?

Following this Q&A i found hot to


回答1:


This solved like a charm

curl_easy_setopt(ctx, CURLOPT_PROXYUSERPWD, ":");


来源:https://stackoverflow.com/questions/28585186/using-libcurl-to-authenticate-ntlm-proxy-without-pass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!