Windows 8 Windows应用商店应用程序代理问题

Windows 8 Windows应用商店应用程序代理问题,windows-8,Windows 8,我正在尝试使用以下代码从internet获取一些数据: HttpClient client = new HttpClient(); string URL = "http://server/test/userauth?operation=loginAuth&userName=" + strEncryptedUsername + "&password=" + strEncryptedPassword HttpResponseMessage response = await

我正在尝试使用以下代码从internet获取一些数据:

HttpClient client = new HttpClient();

string URL = "http://server/test/userauth?operation=loginAuth&userName=" + 
strEncryptedUsername   + "&password=" + strEncryptedPassword 

HttpResponseMessage response = await client.GetAsync(URL);

response.EnsureSuccessStatusCode();

获取代理“需要407授权”错误。请帮忙。这是一个windows应用商店应用程序。

试试这些,它可能会对您有所帮助


Windows应用商店应用程序,但
deviceOS=iOS
?请忽略url。这是为了在服务器上执行一段代码而完成的。使用HttpWebRequest对象并设置其代理属性进行解析