StatusLine (HttpResponse function)
Status line of most recent request (HttpResponse class)
The StatusLine method lets you check the HTTP status line of the result of the most recent Get, Post, or Send operation. StatusLine returns the whole HTTP status line, which consists of a code, a blank, and a message (for example, "200 OK").
%string = httpResponse:StatusLine
|%string||A string or longstring variable for the assignment of the StatusLine value of httpResponse.|
|httpResponse||A reference to an HttpResponse object that was returned by a Get, Post, or Send method of an HttpRequest object.|
The StatusLine function is critical to handling web redirects.
%resp is object httpResponse ... if %resp:statusLine:word(1) eq '302' then ... end if