1cgi_parse(3)                       cgi/cgi.h                      cgi_parse(3)
2
3
4

NAME

6       cgi_parse  - Parse incoming CGI data
7

SYNOPSIS

9       #include <cgi/cgi.h>
10
11
12       NEOERR *cgi_parse (CGI *cgi);
13
14
15
16

ARGUMENTS

18       cgi - a pointer to a CGI pointer
19
20

DESCRIPTION

22       We split cgi_init into two sections, one that parses           just the
23       basics, and the second is cgi_parse.  cgi_parse           is  responsi‐
24       ble  for  parsing  the entity body of the HTTP           request.  This
25       payload  is  typically  only  sent  (expected)            on   POST/PUT
26       requests,  but  generally  this  is  called  on            all incoming
27       requests.  This function walks the list of            registered  parse
28       callbacks  (see  cgi_register_parse_cb),           and if none of those
29       matches or handles the request, it
30
31       handlers:                 POST   w/   application/x-www-form-urlencoded
32                    POST  w/ application/form-data             PUT w/ any con‐
33       tent type           In general, if there  is  no  Content-Length,  then
34                 cgi_parse   ignores   the   payload   and  doesn't  raise  an
35                 error.
36
37

RETURN VALUE

39       Either data populated into files and cgi->hdf, or whatever
40       other side effects of your own registered callbacks.
41
42

SEE ALSO

44       cgi_debug_init(3),  cgi_parse(3),   cgi_destroy(3),   cgi_js_escape(3),
45       cgi_html_escape_strfunc(3),   cgi_register_strfuncs(3),  cgi_output(3),
46       parse_rfc2388(3), cgi_url_validate(3), open_upload(3),  cgi_cs_init(3),
47       cgi_url_escape_more(3),   cgi_html_strip_strfunc(3),  cgi_neo_error(3),
48       cgi_redirect(3),      cgi_filehandle(3),      cgi_register_parse_cb(3),
49       cgi_url_escape(3),           cgi_init(3),          cgi_redirect_uri(3),
50       cgi_cookie_clear(3),  cgi_url_unescape(3),  cgi_vredirect(3),  cgi_dis‐
51       play(3),    cgi_html_ws_strip(3),    cgi_error(3),   cgi_cookie_set(3),
52       cgi_text_html_strfunc(3), cgi_cookie_authority
53
54
55
56ClearSilver                      12 July 2007                     cgi_parse(3)
Impressum