HeaderCount (HttpResponse function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 1: | Line 1: | ||
{{Template:HttpResponse:HeaderCount subtitle}} | |||
This method helps you retrieve the HTTP | This method helps you retrieve the HTTP | ||
Line 13: | Line 8: | ||
the number of occurrences of that particular header is returned. | the number of occurrences of that particular header is returned. | ||
==Syntax== | ==Syntax== | ||
{{Template:HttpResponse:HeaderCount syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 29: | Line 22: | ||
</td></tr></table> | </td></tr></table> | ||
==See also== | |||
{{Template:HttpResponse:HeaderCount footer}} |
Revision as of 19:41, 17 June 2011
Number of HTTP response headers (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
%number = httpResponse:HeaderCount[( [string])]
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. |