getAuthenticationPreemptive
boolean scrapeableFile.getAuthenticationPreemptive ( )
Description
Retrieve the authentication expectation of the request.
Parameters
This method does not receive any parameters.
Return Values
Returns whether the scrapeable file expects to have to authenticate and so will send the information initially instead of waiting for the request for it, as a boolean.
Change Log
Version | Description |
---|---|
5.0 | Available for all editions. |
Examples
Write Expectation Status to Log
// Log expectation of authentication
if ( scrapeableFile.getAuthenticationPreemptive() )
{
session.log( "Expecting Authentication" );
}
if ( scrapeableFile.getAuthenticationPreemptive() )
{
session.log( "Expecting Authentication" );
}
See Also
- setAuthenticationPreemptive() [scrapeableFile] - Sets the authentication expectation of the request
scraper on 08/11/2010 at 3:20 pm
- Printer-friendly version
- Login or register to post comments