setContentType
| scrapeableFile.setContentType( String contentType ) (professional and enterprise editions only) |
| Description |
| In certain rare cases it may be necessary to explicitly set the content type of 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 |
// Sets the type of the POST entity to XML. scrapeableFile.setContentType( "text/xml" ); |
|
|
Recent comments
54 min 39 sec ago
1 hour 1 min ago
3 hours 8 min ago
22 hours 33 min ago
22 hours 50 min ago
23 hours 38 min ago
23 hours 46 min ago
23 hours 56 min ago
1 day 6 min ago
2 days 20 hours ago