Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
SpeedScript : WebSpeed API functions : General information exchange
 

General information exchange

WebSpeed supports several generally useful API functions for information exchange, some of which are most commonly used to handle Web requests. The following table lists these functions.
Table 3. General information exchange API functions
Function
Return type
Description
get-cgi
CHARACTER
Returns the value of a specified CGI variable, or returns the list of all CGI variables if the specified variable name has the Unknown value (?). Returns blank (" ") if the name is invalid.
get-field
CHARACTER
Returns the associated value for a specified form field or query string, or returns the list of all form fields in the current request if the specified field name has the Unknown value (?). Returns blank (" ") if the name is invalid.
get-value
CHARACTER
Returns the first available value associated with the name of a user field, a form field, a query string, or a cookie. If the specified name has the Unknown value (?), returns the list of all user fields, form fields, and cookies. Returns blank (" ") if the name is invalid. This is the most commonly used API function.
html-encode
CHARACTER
Converts various ASCII characters in a string to their HTML representation. Returns the HTML-encoded string. This function is useful for constructing HTML output from SpeedScript program data. However, do not execute it more than once for a given string to avoid corrupting the encoding.
See install-path/src/web/method/cgiutils.i for definitions of these functions.