I am having a problem with getting a reponse from an HttpWebRequest from the
emulator. I keep getting an error: 'Proxy Authentication Required'. I have
an ISA Proxy on the network. This problem only occurs with the Pocket PC
2003 Emulator and the Windoes CE.NET Emulator. It works ok on the Pocket PC
2002 emulator and on the actual devices. I can use the IE in the emulator to
connect the web site if I configure IE to use the proxy server and give
credentials. I tried setting the proxy in code and suppling credentials, but
this doesn't work and causes problems. Why is special code to handle proxy
not necessary for 2002 emulator or actual devices and how can I get the 2003
Emulator and CE.NET emulator to work?
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(internetUrl);
NetworkCredential nc = new
NetworkCredential(internetLogin,internetPassword);
nc = nc.GetCredential(new Uri(internetUrl),"Basic");
request.Credentials = nc;
request.PreAuthenticate=true;
/// Create and get the response
WebResponse response = request.GetResponse();