Change User Agent
Top  Previous  Next

Related example: Set-User-Agent.vbs (VBS script)

Every time you access a web site, the browser you use sends a string to the web server containing information about your operating system and the browser you are using. This string might, for example, look like this:

Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Sometimes it is desirable to pretend to be a different user agent because some web sites change in behaviour or appearance depending on the user agent. iMacros can simulate all user agent strings with the
-useragent command line switch. The command line switch can also be used in iimInit command of the the Scripting Interface:

iret = iim1.iimInit ("-useragent ""Nokia6230/2.0+(04.43)""")

If your user agent contains spaces, please use double quotes (""
) around it.

You can see the current user agent of iMacros at http://www.iopus.com/imacros/demo/v5/user-agent.htm





Page URL http://www.iopus.com/imacros/help/user_agent.htm