InternetSetAgent
- set agent string for Internet function

File Input/Output functions
(AmiBroker 6.30)


SYNTAX InternetSetAgent( ''agent_string'' )
RETURNS NOTHING
FUNCTION The function AFL sets the user agent to be used when opening web pages via InternetOpenURL. By default user agent is "AmiBroker" but some internet sites may expect (or even only work with) specific "popular" agent strings of common browsers such as for example "Mozilla/5.0 (Windows NT x.y; rv:10.0) Gecko/20100101 Firefox/10.0". More information about user agent strings can be found at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
EXAMPLE
SEE ALSO InternetOpenURL() function

References:

The InternetSetAgent function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.