Code (HttpResponse function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
[[Category:HttpResponse methods|Code property]]
[[Category:HttpResponse methods|Code property]]
Line 6: Line 5:
</p>
</p>


This non-settable method lets you check the HTTP status
This method lets you check the HTTP status
code value in the status line of the
code value in the status line of the
result of the most recent HTTP request.
result of the most recent HTTP request.

Revision as of 19:57, 17 June 2011

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

Code is a member of the HttpResponse class.

This 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.