Home |
Function http_find_string_value Function http_add_get_functions Function http_add_post_functions Function http_set_browser_list Function http_set_put_function |
Function http_find_string_valueThis function finds a string in a buffer. char * http_find_string_value(char * buffer, char * match, int buf_len); ParametersbufferPointer to the buffer to scan for a match. matchString to search for. buf_lenLength of *buffer. return valueUpon a successful match, a pointer to the beginning of the data following the '=' char is returned. For example, a search for "ResetHits" in a buffer containing "&ResetHits=0" will return a pointer to "0". This function will look in buffer for a string of the form "match=xx" with one of the following characters preceding the match: &, \0 or \n. This will ensure that a search for "Hits" does not match "ResetHits". The parameter buf_len is the length of the buffer. This function is useful for processing POST commands received from a web browser.
|