setForcedRequestType
void scrapeableFile.setForcedRequestType ( ScrapeableFile.RequestType type ) (professional and enterprise editions only)
Description
Sets the request type to use.
Parameters
-
type The type of request to issue, or null to let screen-scraper decide.
ScrapeableFile.RequestType is an enum with the following options as values
- GET
- POST
- HEAD
- DELETE
- OPTIONS
If the method sets the request to one of those types, all paramenters set as GET in the paramenters tab will be appended to the url (like normal) and all parameters set as POST parameters will be used to buld the request entity. If there are POST values on a type that doesn't support a request entity an exception will be thrown when the request is issued.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
6.0.55a | Available in Professional and Enterprise editions. |
Examples
Sets the request type
scrapeableFile.setForcedRequestType(ScrapeableFile.RequestType.PUT)
samt on 02/26/2016 at 3:51 pm
- Printer-friendly version
- Login or register to post comments