GNU libmicrohttpd 0.9.77
|
Go to the source code of this file.
Functions | |
void | MHD_unescape_plus (char *arg) |
size_t | MHD_http_unescape (char *val) |
bool | MHD_parse_arguments_ (struct MHD_Request *request, enum MHD_ValueKind kind, char *args, MHD_ArgumentIterator_ cb, unsigned int *num_headers) |
size_t MHD_http_unescape | ( | char * | val | ) |
Process escape sequences ('HH') Updates val in place; the result should be UTF-8 encoded and cannot be larger than the input. The result must also still be 0-terminated.
val | value to unescape (modified in the process) |
Definition at line 142 of file internal.c.
bool MHD_parse_arguments_ | ( | struct MHD_Request * | request, |
enum MHD_ValueKind | kind, | ||
char * | args, | ||
MHD_ArgumentIterator_ | cb, | ||
unsigned int * | num_headers | ||
) |
Parse and unescape the arguments given by the client as part of the HTTP request URI.
request | request to add headers to | |
kind | header kind to pass to cb | |
[in,out] | args | argument URI string (after "?" in URI), clobbered in the process! |
cb | function to call on each key-value pair found | |
[out] | num_headers | set to the number of headers found |
Definition at line 190 of file internal.c.
References MHD_Request::daemon, MHD_unescape_plus(), NULL, MHD_Daemon::unescape_cb, and MHD_Daemon::unescape_cb_cls.
Referenced by check_argument_match(), parse_initial_message_line(), and parse_initial_message_line().
void MHD_unescape_plus | ( | char * | arg | ) |
Convert all occurrences of '+' to ' '.
arg | string that is modified (in place), must be 0-terminated |
Definition at line 123 of file internal.c.
References NULL.
Referenced by MHD_parse_arguments_(), MHD_parse_arguments_(), post_process_urlencoded(), and process_value().