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

Return Value

The value of the header, or null if not found

Change Log

Version Description
5.5.29a Available in professional and enterprise editions.

Examples

Log the Content-Type

 session.log(scrapeableFile.getHTTPResponseHeader());