$Web Hdr Len or $Web Hdr Parm Len: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:$Web_Hdr_Len or $Web_Hdr_Parm_Len}} | {{DISPLAYTITLE:$Web_Hdr_Len or $Web_Hdr_Parm_Len}} | ||
<span class="pageSubtitle" | <span class="pageSubtitle">Length of request header field</span> | ||
<var>$Web_Hdr_Len</var> retrieves the length of a field in a request header. | |||
<var>$Web_Hdr_Len</var> takes two arguments and returns a number, or zero if the header does not exist. | |||
==Syntax== | ==Syntax== | ||
<p class="syntax">< | <p class="syntax"><span class="term">%rc</span> = <span class="literal">$Web_Hdr_Len</span>(<span class="term"> fieldname</span>, <span class="term">occurrence</span> ) | ||
< | </p> | ||
===Syntax terms=== | |||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>fieldname</th> | <tr><th>fieldname</th> | ||
<td>The name of the header field, returned by $Web_Hdr_Name. Required argument if occurrence not specified, otherwise optional.</td></tr> | <td>The name of the header field, returned by <var>$Web_Hdr_Name</var>. Required argument if occurrence not specified, otherwise optional.</td></tr> | ||
<tr><th>occurrence</th> | <tr><th>occurrence</th> | ||
<td>The occurrence number of a header field, or the occurrence number of the header field matching ''fieldname'', if ''fieldname'' is specified. Optional argument if ''fieldname'' is specified, otherwise it is required. | <td>The occurrence number of a header field, or the occurrence number of the header field matching ''fieldname'', if ''fieldname'' is specified. Optional argument if ''fieldname'' is specified, otherwise it is required. | ||
</td></tr></table> | </td></tr></table> | ||
==See also== | |||
See also | |||
<ul> | <ul> | ||
<li><var>[[$Web_Hdr_Name]]</var> | <li><var>[[$Web_Hdr_Name]]</var> | ||
<li><var>[[$Web_Hdr_Parm]]</var> | <li><var>[[$Web_Hdr_Parm]]</var> |
Latest revision as of 22:24, 5 June 2013
Length of request header field
$Web_Hdr_Len retrieves the length of a field in a request header.
$Web_Hdr_Len takes two arguments and returns a number, or zero if the header does not exist.
Syntax
%rc = $Web_Hdr_Len( fieldname, occurrence )
Syntax terms
fieldname | The name of the header field, returned by $Web_Hdr_Name. Required argument if occurrence not specified, otherwise optional. |
---|---|
occurrence | The occurrence number of a header field, or the occurrence number of the header field matching fieldname, if fieldname is specified. Optional argument if fieldname is specified, otherwise it is required. |