I am using Internet Explorer 8 (Windows 7 64-bit).
In some code I connect to a web service that requires Digest http
authentication. The client side uses Wininet APIs.
I first call InternetSetOption (INTERNET_OPTION_USERNAME /
INTERNET_OPTION_PASSWORD) to specify the login and password, then call
HttpSendRequest ().
This works fine.
But If I want to change the username or the password and call again
InternetSetOption (INTERNET_OPTION_USERNAME /
INTERNET_OPTION_PASSWORD), the next call to HttpSendRequest () still
sends the previous username.
I found no way to reset the connexion from the client side.
This looks similar to this bug
http://support.microsoft.com/kb/195567/en-us
except that this was a bug of Internet Explorer 4 and now I use
Internet Explorer 8.
I tried to unload Digest Ssp with InternetSetOption
(INTERNET_OPTION_DIGEST_AUTH_UNLOAD) before specifying the new
UserName / Password, this does not change anything.
If I wait for more than 3 minutes, then the server automatically
closes the connection, so the next time I try it works fine.
Any idea ?
Regards,
Michel
So I tried to open a connecion without keep-alive, but it seams that
the connection keeps alive anyway. Is the connection keep-alive by
default, and is there a way to force it not to keep alive ?
Michel
Michel