Powershell请求是否有唯一的用户代理值?

时间:2018-04-16 17:55:24

标签: powershell internet-explorer web request user-agent

我正在尝试解析从Powershell vs Browser进入网页的请求。

从用户代理字符串中,我似乎无法找到特定于Powershell的完全唯一的用户代理。

或者是否有另一个值/标题来分隔它们?

1 个答案:

答案 0 :(得分:0)

From the Invoke-WebRequest documentation on Microsoft, the following is said about the default this.object = object; parameter value:

The default user agent is similar to UserAgent with slight variations for each operating system and platform.

This can be altered though very easily using either a direct string or taking a predefined value from the Microsoft.PowerShell.Commands.PSUserAgent class