Setting WebClient identify in C# for AWStat -


i working on c# application downloads xml web server using webclient. how set identity of application can see in web servers awstat? try both

    mywebclient.headers["user-agent"] = "wolfenstein's program"; 

and

    mywebclient.headers.add("user-agent", "wolfenstein's program"); 

but still shows "unknown robot" in awstat. want see how traffic comes application.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -