Go to the source code of this file.
Data Structures | |
| struct | s_cf_cgi_param |
Typedefs | |
| typedef s_cf_cgi_param | t_cf_cgi_param |
Functions | |
| t_cf_hash * | cf_cgi_new () |
| void | cf_cgi_parse_path_info (t_array *ary) |
| u_char * | cf_cgi_url_encode (const u_char *str, size_t len) |
| u_char * | cf_cgi_url_decode (const u_char *str, size_t len) |
| u_char * | cf_cgi_get (t_cf_hash *cgi, u_char *name) |
| void | cf_cgi_set (t_cf_hash *hash, const u_char *name, const u_char *value) |
| t_cf_cgi_param * | cf_cgi_get_multiple (t_cf_hash *hash, u_char *param) |
| void | cf_cgi_destroy (t_cf_hash *hash) |
| u_int32_t | path_info_parsed (u_char ***infos) |
It can handle POST and GET requests, but no multipart/form-data requests. It can handle multiple form values (form fields with the same names, e.g. checkboxes or something like that). Within these basic conditions it should work very fast and reliable.
This library consists of functions around a hash which contains the CGI parameters. So the Classic Forum hash library is also needed.
Definition in file cfcgi.h.
|
|
this type is used for multiple form values (such as checkboxes or something like that) |
|
|
This function destroys a CGI hash.
|
|
||||||||||||
|
This function gets a single CGI value and returns it as a C string.
|
|
||||||||||||
|
This function returns a double linked list of parameters with the name the parameter 'param' defines.
|
|
|
this function is the constructor for the CGI hash. It reads the CGI data from the environment, parses it and decodes it.
|
|
|
This function parses a query string
|
|
||||||||||||||||
|
This function sets a CGI param value
|
|
||||||||||||
|
This function decodes an URL encoded string. This means, <2-digit-hexvalue> will be decoded to the corresponding character
|
|
||||||||||||
|
This function encodes a string to an URL encoded string. This means, all characters < 48, > 122 except '_', '.' and '-' will be encoded to '%<2 digit hexvalue of character>'. Space will be converted to '+'.
|
|
|
This function parses a PATH_INFO string |
1.3.5