0

I am working on a C# application that downloads xml from a web server using WebClient. How do I set the identity of the application so I can see it in the web servers AWStat? I try both

    MyWebClient.Headers["user-agent"] = "Wolfenstein's Program";

and

    MyWebClient.Headers.Add("user-agent", "Wolfenstein's Program");

but it still shows up as "unknown robot" in AWStat. I simply want to see how much traffic comes from my application.

Lord Wolfenstein
  • 261
  • 2
  • 14

0 Answers0