Description
Returns the content type string for the specified page according to the HTTP Content-Type header if one has been received, or an empty string if a Content-Type header is not present.
Arguments
|
Name |
Type |
I/O |
Description |
|
URL |
String |
In |
The page of interest (blank for the current page). |
Return Value
String: the type specified by the Content-Type header if available, else empty.
Remarks
The return value is extracted from the incoming HTTP Content-Type header when available. This header is not guaranteed to be present, in which case the return value will be an empty string.
This method can be applied to the current visible page or to any other page in cache.