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_filehandle(3),     cgi_debug_init(3),     cgi_register_parse_cb(3),
45       cgi_url_escape(3), cgi_parse(3), cgi_destroy(3), cgi_init(3), cgi_redi‐
46       rect_uri(3), cgi_js_escape(3),  cgi_html_escape_strfunc(3),  cgi_regis‐
47       ter_strfuncs(3),        cgi_output(3),        cgi_text_html_strfunc(3),
48       cgi_cookie_clear(3), parse_rfc2388(3), cgi_redirect(3), open_upload(3),
49       cgi_url_unescape(3),  cgi_vredirect(3), cgi_cs_init(3), cgi_display(3),
50       cgi_html_ws_strip(3),         cgi_error(3),          cgi_cookie_set(3),
51       cgi_url_escape_more(3),   cgi_html_strip_strfunc(3),  cgi_neo_error(3),
52       cgi_cookie_authority
53
54
55
56ClearSilver                    14 November 2006                   cgi_parse(3)
Impressum