更改用户代理 [英] Change User Agent
问题描述
我正在使用Watin,我想更改用户代理可以在watin c#中完成。有些网站说它是通过更改注册表来完成的,有些人说IE8有插件来改变它但我想通过编程来改变它/ p>
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
推荐答案
从上一条评论中我不确定您是否熟悉注册表类。以下是一些有关访问和修改注册表的教程。
From your last comment I am not sure if you are familiar with registry classes. Here are some tutorials on accessing and modifying registry.
然后你需要修改HKEY_LOCAL_MACHINE \ SOFTWARE \ Microoft \ Windows \ CurrentVersion \Internet Settings \ Userser密钥。
Then you need to modify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent key.
您可以在 msdn 。
您可以在 useragentstrings
您可以找到用户代理字符串列表这里。
You can find list of user agent string here.
这是一个关于在 pctools 。
这篇关于更改用户代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!