Author: splick | Posted on: 3/24/2009 7:54:49 AM | Views : 1319

Hello,

 I'm trying to get the web content of a file from an url: http://www.mydomain.com/report/1?format=csv&user=peter. To acces this content with a browser you have to authenticate. It's using basic digest authentication. This is the code that I'm using:

1    System.Net.WebClient client = new System.Net.WebClient();
2    client.Credentials = new System.Net.NetworkCredential("peter", "peter_password");
3    //client.QueryString.Add("format", "csv");
4    //client.QueryString.Add("USER", "peter");
5   
6&nbs ...

Go to the complete details ...