HeaderCount (HttpResponse function)
Number of HTTP response headers (HttpResponse class)
The HeaderCount 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
%numbre | A numeric variable. |
---|---|
httpResponse | A reference to an HttpResponse object that was returned by a Get, post, or Send method of an HttpRequest object. |
string | 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. |