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

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

Success is a member of the HttpResponse class.

This non-settable method lets you check the status code value in the status line of the result of the most recent Get, Post, or Send operation.

Syntax

%boolean = %httpresp:Success

Syntax terms

%boolean A numeric variable for the assignment of the Success value of %httpresp. Success returns 1 (True) if the HTTP status code is in the 200s (success range), and it returns 0 (False) otherwise.
%httpresp A reference to an HTTPResponse object that was returned by a Get, Post, or Send method of an HTTPRequest object.

Usage Notes

If Success returns 1 (True), content was retrieved and is available via the Content and ParseXML methods.