a***@cs.com
2011-01-20 08:34:14 UTC
Having a problem while accessing the site (Apache server) over SSL
with Digest authentication.
WinHttpReceiveResponse() returns error 12015 without an attempt to
authenticate. Normally, I would expect to see 401 response, after
which I use WinHttpSetCredentials() and re-send. Auto-logon policy is
set to HIGH.
I did the trace and can see that the server returns a normal Digest
challenge. I also can see that the initial request does not contain
any authorization header. However, I am getting error 12015, as I
would try to authenticate.
I tried to ignore that error, set credentials, and re-send over the
same request handle. No authorization headers are sent. Same error
12015.
When I disable automatic authentication, the first request returns
401, as expected. However,
WinHttpQueryAuthSchemes() fails. And manual push for
WinHttpSetCredentials() doesn't help.
This is, perhaps, because of the automatic authentication option
disabled. So, the communications really look like an attempt to
authenticate at the first request.
Any help would highly appreciated.
with Digest authentication.
WinHttpReceiveResponse() returns error 12015 without an attempt to
authenticate. Normally, I would expect to see 401 response, after
which I use WinHttpSetCredentials() and re-send. Auto-logon policy is
set to HIGH.
I did the trace and can see that the server returns a normal Digest
challenge. I also can see that the initial request does not contain
any authorization header. However, I am getting error 12015, as I
would try to authenticate.
I tried to ignore that error, set credentials, and re-send over the
same request handle. No authorization headers are sent. Same error
12015.
When I disable automatic authentication, the first request returns
401, as expected. However,
WinHttpQueryAuthSchemes() fails. And manual push for
WinHttpSetCredentials() doesn't help.
This is, perhaps, because of the automatic authentication option
disabled. So, the communications really look like an attempt to
authenticate at the first request.
Any help would highly appreciated.