This module implements the predicates for CGI processes. It is based on translating the CGI environment to HTTP request terms (see http/http_server).
Usage:cgi_read_request(Request)
Obtain a HTTP request from the CGI environment variables (for headers) and input stream data (for contents). This request can be processed with other predicates in the http_server libraries.
Unifies URL with the Uniform Resource Locator (WWW address) of this cgi executable.
Usage:
Sets a cookie of name Name and value Value (it must be called before cgi_write_response/1)
Usage:
Unifies Cookies with a dictionary of attribute=value pairs of the active cookies for this URL. If the flag raw_form_values is on, values are always atoms even if they could be interpreted as numbers.
Usage:
Usage:cgi_write_response(Response)
Writes the CGI response (similar to a HTTP response but sent through stdout)
Usage:define_flag(Flag,FlagValues,Default)