Library functions: ISAPI calls

The functions in this class allow a script to interact with Microsoft® Internet Information Server™; they are specific to the ISAPI version of Proteus: the value of the public identifier OS is 3 if the script is being run by the ISAPI interpreter; besides, the directive ISAPI is pre-defined, so it is possible to conditionally execute part of the code by enclosing it between !ifdef ISAPI and endif.
 
ISAPIGETDATA()

retrieves and returns the contents of the POST operation initiated by the client; run URLDECODE on the result to process the returned information.

ISAPIGETVAR(cVarName)

returns the value of the specified value; cVarName can be one of the following strings:

See the documents accompanying IIS for further information.

ISAPISERVFUNC(nRequest, nStatus, cHeader)

invokes the extended function corresponding to nRequest passing the specified parameters, nStatus and cHeader; returns 0 on success, -1 on error. The possible requests can be:

Value Description
1 Send a 302 message (URL Redirect) to the client. No further processing is required after the call. This operation is similar to specifying "URI: <URL>" in the header of a CGI script.
2 Send the specified data form the URL to the client, as if the client had requested the URL. No further processing is required after the call.
3 Send a full reply from the HTTP server, including status, server version, message time and MIME type.
4 Tell the server that the operation completed.

See the documents accompanying IIS for further information.

ISAPITXFILE(cPathName, cMimeType)

transmits asyncronously the file corresponding to cPathName to the client ; the script can end immediately after the call to this function (if it was successfull, i.e. if the result was 0). If you want to send any binary file, you can use the following cMimeType:

"Content-type: application/binary;name=\"" FileName(S) \ 
"\"\r\nContent-Disposition: inline; filename=\"" FileName(S) "\""

where FileName is the following function:

FUNCTION FileName(S)

P = STRRSTR(S, "\\")
IF NEQ(P, 0)
  RETURN RESTFROM(S, INC(P))
FI
RETURN S

ISAPIWRITELOG(cText)

sets the string to be written to the log at the end of the transaction

Start of page Next topic Previous topic Contents Index
Midnight Lake iPhone Case Black Women Shoes Black Flat Shoes Leather Flats Black Patent Ballerinas Black Ballet Shoes Casual Shoes Black Shoes Women Balle Record Player Cufflinks Best iPhone XR Clear Cases iPhone XS/XS Max Leather Cases Sale Best iPhone 8/8 Plus Silicone Cases iPhone 7/7 Plus Cases & Screen Protector New Cases For iPhone 6/6 Plus iPhone 8 Case Sale iPhone Xr Case Online iPhone 7 Case UK Online iPhone X Case UK Sale iPhone X Case Deals iPhone Xs Case New Case For iPhone Xr UK Online Case For iPhone 8 UK Outlet Fashion Silver Cufflinks For Men Best Mens Cufflinks Outlet Online The Gold Cufflinks Shop Online Cheap Shirt Cufflinks On Sale Nice Wedding Cufflinks UK Online Top Black Cufflinks UK Online Mens Cufflinks Online Silver Cufflinks For Men Men Cufflinks UK Sale Gold Cufflinks UK Online Gold Cufflinks UK Silver Cufflinks UK Shirt Cufflinks Discount Online Mens Cufflinks Deals & Sales Girls Shoes For Dance Fashion Ballet Dance Shoes Best Ballet Flats Shoes UK Online Cheap Ballet Pointe Shoes UK Online Best Ballet Shoes Outlet Best Dance Shoes Sale Cheap Ballet Flats Sale UK Best Pointe Shoes Online UK Ballet Dance Shoes UK Shoes For Dance UK Best Ballet Slippers Shop Best Yoga Shoes Hotsell