$Web Hdr Name: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_Hdr_Name}}
{{DISPLAYTITLE:$Web_Hdr_Name}}
<span class="pageSubtitle"><section begin="desc" />Name of request header field<section end="desc" /></span>
<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> takes a single argument and returns a string, or null if the number references a non-existing field.


$Web_Hdr_Name retrieves the name of a field in a request header.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RC = $Web_Hdr_Name( field_number )
<p class="syntax"><span class="term">%count</span> = $Web_Hdr_Name( <span class="term">field_number</span> )
<section end="syntax" /></p>
</p>
 


$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.
<var>$Web_Hdr_Name</var> is useful when writing generic server applications, when the server does not know what field name exists at a particular location in a request.
<p class="code"> * Get the number of header fields.
<p class="code">&#42; Get the number of header fields.
%X = $Web_Num_Hdr
%x = $Web_Num_Hdr
   
   
* Load the header field names into an array.
&#42; Load the header field names into an array.
FOR %Y FROM 1 TO %X
FOR %y FROM 1 TO %x
%HDR_FIELD(%Y) = $Web_Hdr_Name(%Y)
%HDR_FIELD(%y) = $Web_Hdr_Name(%y)
END FOR
END FOR
</p>
</p>


 
==See also==
See also:
<ul>
<ul>
 
<li><var>[[$Web_Hdr_Len]]</var>  
<li>[[<var>$Web_Hdr_Len]]</var>  
<li><var>[[$Web_Hdr_Parm]]</var>  
<li>[[<var>$Web_Hdr_Parm]]</var>  
<li><var>[[$Web_Num_Hdr]]</var>
<li>[[<var>$Web_Num_Hdr]]</var>
</ul>
</ul>




[[Category:Janus Web Server $functions|$Web_Hdr_Name]]
[[Category:Janus Web Server $functions|$Web_Hdr_Name]]

Latest revision as of 22:25, 5 June 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

See also