Code (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> Code property <p> <var>Code</var> is a member of the <var>[[...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Code is a member of the HttpResponse class.

This non-settable method lets you check the HTTP status code value in the status line of the result of the most recent HTTP request. Code returns only the code portion of the status line (for example, "200").

Syntax

%code = %httresp:Code

Syntax terms

%code A string, longstring, or numeric variable for the assignment of the current Code value of %httpresp.
%httpresp A reference to an HTTPResponse object that was returned by a Get, Post, or Send method of an HTTPRequest object.