1cgi_init(3) cgi/cgi.h cgi_init(3)
2
3
4
6 cgi_init - Initialize ClearSilver CGI environment
7
9 #include <cgi/cgi.h>
10
11
12 NEOERR *cgi_init (CGI **cgi, HDF *hdf);
13
14
15
16
18 cgi - a pointer to a CGI pointer
19 hdf_file - the path to an HDF data set file that will also be
20 loaded into the dataset. This will likely have to
21 a be a full path, as the HDF search paths are not
22 yet set up. Certain things, like
23
24
26 cgi_init initializes the ClearSilver CGI environment, including creat‐
27 ing the HDF data set. It will then import the standard CGI environment
28 variables into that dataset, will parse the QUERY_STRING into the data
29 set, and parse the HTTP_COOKIE into the data set. Note that if the var
30 xdisplay is in the form data, cgi_init will attempt to validate the
31 value and launch the configured debugger on the CGI program. These
32 variables have to be specified in the hdf_file pointed to by hdf_file.
33 The default settings do not allow debugger launching for security rea‐
34 sons.
35
36
38 cgi - an allocated CGI struct, including
39
40
42 cgi_filehandle(3), cgi_debug_init(3), cgi_register_parse_cb(3),
43 cgi_url_escape(3), cgi_parse(3), cgi_destroy(3), cgi_init(3), cgi_redi‐
44 rect_uri(3), cgi_js_escape(3), cgi_html_escape_strfunc(3), cgi_regis‐
45 ter_strfuncs(3), cgi_output(3), cgi_text_html_strfunc(3),
46 cgi_cookie_clear(3), parse_rfc2388(3), cgi_redirect(3), open_upload(3),
47 cgi_url_unescape(3), cgi_vredirect(3), cgi_cs_init(3), cgi_display(3),
48 cgi_html_ws_strip(3), cgi_error(3), cgi_cookie_set(3),
49 cgi_url_escape_more(3), cgi_html_strip_strfunc(3), cgi_neo_error(3),
50 cgi_cookie_authority
51
52
53
54ClearSilver 14 November 2006 cgi_init(3)