According to MSDN, WinHttpSetCredentials
requires you to specify the exact username and password.
Is there a way to use current user credentials?
Without needing to specify the username and password, that is.
When I send the request, I get a 401
response. (Server is IIS, using NTLM Windows Authentication.)
I tried following MSDN's example here, but the example requires given username and password.
EDIT: Just to make things clearer, I'm currently using code similar to what appears here: winHTTP GET request C++