$Web Hdr Name: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 26: | Line 26: | ||
<ul> | <ul> | ||
<li>[[$Web_Hdr_Len]] | <li>[[<var>$Web_Hdr_Len]]</var> | ||
<li>[[$Web_Hdr_Parm]] | <li>[[<var>$Web_Hdr_Parm]]</var> | ||
<li>[[$Web_Num_Hdr]] | <li>[[<var>$Web_Num_Hdr]]</var> | ||
</ul> | </ul> | ||
[[Category:Janus Web Server $functions|$Web_Hdr_Name]] | [[Category:Janus Web Server $functions|$Web_Hdr_Name]] |
Revision as of 20:17, 12 June 2012
<section begin="desc" />Name of request header field<section end="desc" />
$Web_Hdr_Name retrieves the name of a field in a request header.
Syntax
<section begin="syntax" /> %RC = $Web_Hdr_Name( field_number ) <section end="syntax" />
$Web_Hdr_Name takes a single argument and returns a string, or null if the number references a non-existing field.
$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:
- [[$Web_Hdr_Len]]
- [[$Web_Hdr_Parm]]
- [[$Web_Num_Hdr]]