setMaxHTTPRequests

void session.setMaxHTTPRequests ( int maxAttempts ) (professional and enterprise editions only)

Description

Set the number of attempts that scrapeable files should make to get the requested page.

Parameters

  • maxAttempts The number of attempts that will be made, as a integer.

Return Values

Returns void.

Change Log

Version Description
5.0 Available for all editions.

Examples

Set the Retry Value

// Set retries for files
session.setMaxHTTPRequests( 3 );

See Also

  • getMaxHTTPRequests() [session] - Returns the maximum number of attempts a scrapeable file will make to retrieve the file