Change User Agent

随声附和 提交于 2019-12-11 07:02:00

问题


I am using Watin and i want to change User Agent can it be done in watin c#.Some websites say it is done by changing registries and some say that IE8 has addon to change that but i want to change it by programming


回答1:


From your last comment I am not sure if you are familiar with registry classes. Here are some tutorials on accessing and modifying registry.

  • Code project

  • Dream in code

  • C-sharpcorner

Then you need to modify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent key.

You can find detailed explanation about user agent string at msdn.

You can test your user agent string at useragentstrings

You can find list of user agent string here.

Here's a small guide on changing user agent string at pctools.




回答2:


If You will decide not to do it by progamming, Firefox has an addon called "User Agent Switcher" which works great. Maybe It will help You.



来源:https://stackoverflow.com/questions/4575073/change-user-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!