This module implements the predicates for CGI processes. It is based on translating the CGI environment to HTTP request terms (see http/http_server).
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.
Sets a cookie of name Name and value Value (it must be called before cgi_write_response/1)
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.
Writes the CGI response (similar to a HTTP response but sent through stdout)