$Web Hdr Name: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
(Automatically generated page update) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:$Web_Hdr_Name}} | {{DISPLAYTITLE:$Web_Hdr_Name}} | ||
<span class="pageSubtitle" | <span class="pageSubtitle">Name of request header field</span> | ||
<var>$Web_Hdr_Name</var> retrieves the name of a field in a request header. | <var>$Web_Hdr_Name</var> retrieves the name of a field in a request header. | ||
Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
<p class="syntax" | <p class="syntax"><span class="term">%count</span> = $Web_Hdr_Name( field_number ) | ||
</p> | |||
Revision as of 15:57, 9 April 2013
Name of request header field
$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
%count = $Web_Hdr_Name( field_number )
$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