Initializing help system before first use

httpreqstat

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
Request not active
No associated data
Raw data available
'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
Module