You run a regular expression against it to extract the user agent string.
您针对这个对象运行一个正则表达式,提取用户代理字符串。
Make sure to use the correct user agent string, since this is the value the portal USES to match an incoming request to your device.
请确保使用正确的用户代理字符串,因为门户使用该值来使入站请求与设备匹配。
The second line, the first rewrite condition, indicates that following rules only apply when the user-agent string in the HTTP request header contains the substring MSIE.
第二行的第一个重写条件表明:下面的规则仅适用于HTTP请求报头中的user - agent字符串包含子字符串msie的情形。
The mechanism chosen, which is not the only possible way to manage this, involves creating a pseudo-MIME type, matching the user-agent string and using Rails' respond_to mechanism.
所选用的机制(并不是惟一的实现方法)涉及创建伪 MIME类型,匹配用户代理字符串和使用 Rails 的 respond_to 机制。
This automatically reflects the changes in all the places where User-Agent string is being used.
这样就可以在所有User-Agent字符串使用的地方反映这个变更了。
You can verify the change of the User-Agent string in the Protocol Data tab of the RPT workspace after you have saved the changes (Figure 4).
您可以在保存这个更改之后,验证RPT 工作区的ProtocolData标签中的User-Agent字符串值(图 4)。
You can verify the change of the User-Agent string in the Protocol Data tab of the RPT workspace after you have saved the changes (Figure 4).
您可以在保存这个更改之后,验证RPT 工作区的ProtocolData标签中的User-Agent字符串值(图 4)。
应用推荐