Hi!
I'm writing a program that reads some data from a website to do some calculations and display the results on the GUI.
The program works correctly without a proxy, but unfortunately it is going to be used mostly behind one.

The computers where the program will be installed use network accounts (in a domain) and after opening the browser the window's account username/password combination is valid to surf.

My problem is that I'm unable to do the same, that is get the cached username/password combo to connect to internet (using HttpWebRequest) without asking the user to type the required information (I tried to use NetworkCredentials, but the program still returns a 407 Authorization required error).

How can I do that?