getUserAgent

String scrapeableFile.getUserAgent ( )

Description

Retrieve the name of the user agent making the request.

Parameters

This method does not receive any parameters.

Return Values

Returns the user agent, as a string.

Change Log

Version Description
4.5 Available for professional and enterprise editions.

Examples

Write User Agent to Log

 // write to log
 session.log( scrapeableFile.getUserAgent( ) );

See Also

  • setUserAgent() [scrapeableFile] - Sets the name of the user agent that will make the request