To begin with: I DO NOT WANT A SOLUTION FOR ASP.NET
I have a windows application which tries to get information from the internet. But the connection to the internet can only be established through a proxy server.
Normally, the users who use the application log in with their credentials and that should automatically connect to the proxy server. But, for example, when you try opening Internet Explorer which is set up to use a proxy, it pops up the log-in window to
authenticate to the proxy server, in case it is not saved.
My problem is, if it is saved, I can take the default credentials and proxy server using
System.Net.WebProxy.GetDefaultProxy(); (I know this is deprecated, but it works for me. I would appreciate a more elegant solution).
But, in case it is not saved, I want to pop-up the windows authentication window like the IE does. Is it possible to that? If yes, I would appreciate a little help, otherwise I have to write my own authentication window.
Please respond asap.
Thanks in advance.