$Web_Hdr_Name

From m204wiki
Revision as of 22:43, 18 October 2012 by JALWiccan (talk | contribs) (1 revision)
Jump to navigation Jump to search

<section begin="desc" />Name of request header field<section end="desc" />

$Web_Hdr_Name retrieves the name of a field in a request header.

$Web_Hdr_Name takes a single argument and returns a string, or null if the number references a non-existing field.

Syntax

<section begin="syntax" />%rc = $Web_Hdr_Name( field_number ) <section end="syntax" />


$Web_Hdr_Name is useful when writing generic server applications, when the server does not know what field name exists at a particular location in a request.

* Get the number of header fields. %x = $Web_Num_Hdr * Load the header field names into an array. FOR %y FROM 1 TO %x %HDR_FIELD(%y) = $Web_Hdr_Name(%y) END FOR

See also