views:

141

answers:

0

Our application uses WinInet to download data from a web server that supports Windows Authentication (Negotiate). However, when Internet Explorer's Windows Authentication setting is disabled, we only get an HTTP 401 - Unauthorized error.

Both .NET's WebClient and the newer WinHTTP don't show this behaviour, but they are not a feasible option for us in the moment.

Is it possible to override IE's EnableNegotiate setting for the current HTTP request / thread / process?