Calls an external .asp script and returns the result in a string. An HTTP request is performed: you have the ability to use a POST method or a GET method.
It is recommended to use this function to run ASP scripts (rather than
ScriptExecute).
// Runs the "Script1.asp" script found at the root of the Web site
// and returns the result in S
MyBuffer is Buffer
MyBuffer = ASPExécute("/Script1.asp")
// Login page in asp. Sends 3 parameters with the POST method
// The script is found in the ASP directory
MyBuffer is Buffer
MyBuffer = ASPExécute("/ASP/Login.asp", "Name=BOB&Pass=My+Secret&Lang=3", True)
Syntax
<Result> = ASPExecute(<Script name> [, <"Name1=Param1&Name2=Param2&..."> [, <Runtime method>]])
<Result>: Buffer or character string
Result of ASP script. In most cases, this result can be displayed by StringDisplay.
<Script name>: Character string
Address of the script. The script URL can have the following format:- "http://ServerName/Address.asp": the Address.asp script is found on the "ServerName" computer.
- "/Scripts/MyScript.asp": MyScript.asp is found on the current server, in the "/Scripts" sub-directory of the site.
You have the ability to use a secure address (https)
<"Name1=Param1&Name2=Param2&...">: Optional character string
Parameters intended for the script. This string contains for each parameter:- the parameter name,
- the = sign,
- the parameter value.
Two parameters are separated by the & sign.
<Runtime method>: Optional boolean
- True to run a POST method,
- False (default value) to run a GET method.
Remarks
The content of parameters is automatically encoded to get a valid URL:
- transformation into UTF-8 (according to the options of the page and project).
- encoding of special characters.