1.2.2.5. useragent – HTTP user-agent Spoofing

class lib.browser.plugins.useragent.UserAgentSpoofer(agent_string)

Allows one to easily change the browser’s HTTP user-agent header. This can be handy if you want to ensure that we are treated like a real-world browser.

__init__(agent_string)

Creates a new instance of the plugin using the specified user-agent string. The string can be custom, or can be pulled from one of the class’ example strings.

lib.browser.plugins.useragent.firefox

A dictionary containing user-agent strings for iceweasel-linux-5.0, firefox-macintosh-5.0, and firefox-windows-4.0.

Previous topic

1.2.2.4. cookies – Automatic Handling of Browser Cookies

Next topic

1.2.2.6. keepalive – Handler for HTTP Keep-Alive Headers

This Page