CGI-FCGI-SERVER-Functions

LA.Docs
March 1st, 2016

List of CGI/FCGI/SERVER-Functions


Request(): TRequest

Use the Request method to access the TRequest object properties and methods of the current server thread.

Response(): TResponse

Use the Response method to access the TResponse object properties and methods of the current server thread.

Below example checks if the query element id was set and sends a response.
Example Pascal:
if Request.queryFields.Values[’id’] <> ’’ then
    Response.setContent(’You send the ID: ’+Request.queryFields.Values[’id’])
else
    Response.setContent(’Please send us an ID’);

Session(): TSession

Use the Session method to access the TSession object properties and methods of the current server thread.