scrapeableFile

Scrapeable File

setForcePOST

void scrapeableFile.setForcePOST ( Boolean forcePOST ) (professional and enterprise editions only)

Description

Determines whether or not a POST request should be forced.

Parameters

  • forcePOST Whether a POST

Return Values

Returns void.

setForcedRequestType

void scrapeableFile.setForcedRequestType ( ScrapeableFile.RequestType type ) (professional and enterprise editions only)

Description

Sets the request type to use.

getRedirectURLs

String[] scrapeableFile.getRedirectURLs ( ) (professional and enterprise editions only)

Description

Gets an array of strings containing the redirect URL's for the current scrapeable file request attempt.

Parameters

This method does not receive any parameters.

Return Values

Returns the array of strings; may be empty.

setLastScrapedData

void scrapeableFile.setLastScrapedData(String) (enterprise edition only)

Description

Overwrite the content of the "last response"

Parameters

  • String Desired new content of the last response

Return Values

Returns void.

getRetryPolicy

RetryPolicy scrapeableFile.getRetryPolicy ( ) (professional and enterprise editions only)

Description

Returns the retry policy. Note that in any 'After file is scraped' scripts this is null

Parameters

This method takes no parameters.

Return Value

The Retry Policy that will be used by this scrapeable file

setRetryPolicy

void scrapeableFile.setRetryPolicy ( RetryPolicy policy ) (professional and enterprise editions only)

Description

getHTTPResponseHeader

String scrapeableFile.getHTTPResponseHeader ( String header ) (professional and enterprise editions only)

Description

Gets the value of the header in the response of the scrapeable file, or returns null if it couldn't be found

Parameters

  • header The header name (case-insensitive) to get

getHTTPResponseHeaders

Map<String, String> scrapeableFile.getHTTPResponseHeaders ( ) (professional and enterprise editions only)

Description

Gets the headers of the HTTP Response as a map, and returns them.

Parameters

This method takes no parameters

Return Value

A Map from header name to header value for the response headers.

scrapeableFile

Changes to scrapeableFile

getASPXValues

DataRecord scrapeableFile.getASPXValues ( boolean onlyStandard ) (professional and enterprise editions only)

Description

Gets the ASPX .NET values from the string. The standard values are __VIEWSTATE, __EVENTTARGET, __EVENTVALIDATION, and __EVENTARGUMENT. Values will be stored in the returned DataRecord as ASPX_VIEWSTATE, ASPX_EVENTTARGET, etc...