Initializing help system before first use

# httpreqstat

Purpose
Get the status associated with a request.
Synopsis
`function httpreqstat(reqid:integer):integer`
Argument

reqid | Request number

Return value
Request status:

<0 | Invalid request number
0 | Request not active
1 | No associated data
2 | Raw data available
3 | 'initialisations from' data available

Further information
1. If the return value is 2 or 3 a data file is available (see httpreqfile). If this function returns 3 then the file can be read using an initialisations from block: data that was originally URL-encoded has been decoded by the server and stored using Mosel's initialisations format.
2. The status 3 will be produced when the request is of type GET or DELETE and has associated data. This will also be the case with a query of type POST or DELETE if the content type is "application/x-www-form-urlencoded".
Related topics
httpreqfrom, httpreqfile, httpreqlabel, httpreqtype, httpreqheader, httpreqcookies, httpreqconstat.
Module
mmhttp
Parent Topic Procedures and functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.