getHTTPResponseHeaderSection
String scrapeableFile.getHTTPResponseHeaderSection ( ) (professional and enterprise editions only)
Description
Gets the header section of the HTTP Response
Parameters
This method takes no parameters
Return Value
A String containing the HTTP Response Headers
Change Log
Version | Description |
---|---|
5.5.29a | Available in professional and enterprise editions. |
Examples
Log the headers
// Split the headers into lines
String[] headers = scrapeableFile.getHTTPResponseHeaderSection().split("[\\r\\n]");
for(int i = 0; i < headers.length; i++)
{
session.log(headers[i]);
}
String[] headers = scrapeableFile.getHTTPResponseHeaderSection().split("[\\r\\n]");
for(int i = 0; i < headers.length; i++)
{
session.log(headers[i]);
}
mikes on 11/16/2011 at 2:17 pm
- Printer-friendly version
- Login or register to post comments