WebDocument.Headers


public function Headers

Prototype:

null-return Headers(string headerdata)

Parameters

headerdata
a string containing the data to be outputed as a header entry

Description:

Send a raw HTTP header.

Notice: Do not use this function after the output was started using operator << .

Return value:

Return null

Example
...
doc.Header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
doc.Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
...