Windows Phone 7, download xml over ssl with authentication
Posted
by Snake
on Stack Overflow
See other posts from Stack Overflow
or by Snake
Published on 2010-05-04T07:18:16Z
Indexed on
2010/05/04
7:28 UTC
Read the original article
Hit count: 199
Hi, I'm trying to download a file from my provider.
The url is protected with basic username and password, and everything is sent over ssl.
So I try to do this:
WebClient proxy = new WebClient();
proxy.DownloadStringCompleted += (o, dscea) => System.Diagnostics.Debugger.Break();
proxy.Credentials = new NetworkCredential("username", "password");
proxy.DownloadStringAsync(new Uri("https://..../.../data.xml"));
As you can see I try to validate. The data IS correct, and the code works when I try to download something from twitter.
What am I forgetting to connect to this xml file?
© Stack Overflow or respective owner