Using Libcurl to authenticate ntlm proxy without p

2019-09-17 14:10发布

问题:

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, ":");