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( ) );
session.log( scrapeableFile.getUserAgent( ) );
See Also
- setUserAgent() [scrapeableFile] - Sets the name of the user agent that will make the request
scraper on 08/11/2010 at 3:02 pm
- Printer-friendly version
- Login or register to post comments
