#include "config.h"
#include "defines.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hashlib.h"
#include "utils.h"
#include "cfcgi.h"
Go to the source code of this file.
Functions | |
| int | _cf_cgi_parse_params (t_cf_hash *hash, u_char *data) |
| int | _cf_cgi_save_param (t_cf_hash *hash, u_char *name, int namlen, u_char *value) |
| this function saves a parsed parameter to the CGI hash. | |
| void | cf_cgi_destroy_entry (void *data) |
| this function destroys a parameter list. | |
| t_cf_hash * | cf_cgi_new () |
| void | cf_cgi_parse_path_info (t_array *ary) |
| u_char * | cf_cgi_url_decode (const u_char *str, size_t len) |
| u_char * | cf_cgi_url_encode (const u_char *str, size_t len) |
| u_char * | cf_cgi_get (t_cf_hash *hash, 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) |
Definition in file cfcgi.c.
|
|
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