HeaderCount (HttpResponse function)

From m204wiki
Revision as of 19:21, 17 June 2011 by 198.242.244.47 (talk) (Created page with " <span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span> HeaderCount function <p> <var>HeaderCount</var> is a member ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/><section end=dpl_desc/>

HeaderCount is a member of the HttpResponse class.

This method helps you retrieve the HTTP response headers returned by an HTTP request. HeaderCount returns the number of headers returned by the server, if it is called with no argument. If it is called with a headername argument, the number of occurrences of that particular header is returned.

Syntax

%ct = %httpresp:HeaderCount[(name)]

Syntax terms

%ct A numeric variable.
%httpresp A reference to an HTTPResponse object that was returned by a Get, Post, or Send method of an HTTPRequest object.
name A string expression that yields the name of an HTTP response header. Specifying name returns the number of occurrences of this header.

Header names are case-insensitive.