addHTTPHeader
| scrapeableFile.addHTTPHeader( String contentType ) (enterprise edition only) |
| Description |
| In certain rare cases it may be necessary to explicitly add a custom header to the POST data of an HTTP request. This may be required in cases where a site is using AJAX, and the POST payload of a request is sent as XML (e.g., using the setRequestEntity method). This method must be invoked before the HTTP request is made (e.g., "Before file is scraped" for a scrapeable file). |
 |
| Example |
// Add a new HTTP Header to the POST entity to XML. scrapeableFile.addHTTPHeader( "OBPostReq", "true" );
|
|
|
Recent comments
9 hours 6 min ago
9 hours 13 min ago
11 hours 19 min ago
1 day 6 hours ago
1 day 7 hours ago
1 day 7 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 8 hours ago
3 days 4 hours ago