HTP
0.3
|
Functions | |
htp_urlenp_t * | htp_urlenp_create (htp_tx_t *tx) |
void | htp_urlenp_destroy (htp_urlenp_t **_urlenp) |
int | htp_urlenp_finalize (htp_urlenp_t *urlenp) |
int | htp_urlenp_parse_complete (htp_urlenp_t *urlenp, unsigned char *data, size_t len) |
int | htp_urlenp_parse_partial (htp_urlenp_t *urlenp, unsigned char *data, size_t len) |
htp_urlenp_t* htp_urlenp_create | ( | htp_tx_t * | tx | ) |
Creates a new URLENCODED parser.
void htp_urlenp_destroy | ( | htp_urlenp_t ** | _urlenp | ) |
Destroys an existing URLENCODED parser.
urlenp |
int htp_urlenp_finalize | ( | htp_urlenp_t * | urlenp | ) |
Finalizes parsing, forcing the parser to convert any outstanding data into parameters. This method should be invoked at the end of a parsing operation that used htp_urlenp_parse_partial().
urlenp |
int htp_urlenp_parse_complete | ( | htp_urlenp_t * | urlenp, |
unsigned char * | data, | ||
size_t | len | ||
) |
Parses the provided data chunk under the assumption that it contains all the data that will be parsed. When this method is used for parsing the finalization method should not be invoked.
urlenp | |
data | |
len |
int htp_urlenp_parse_partial | ( | htp_urlenp_t * | urlenp, |
unsigned char * | data, | ||
size_t | len | ||
) |
Parses the provided data chunk, keeping state to allow streaming parsing, i.e., the parsing where only partial information is available at any one time. The method htp_urlenp_finalize() must be invoked at the end to finalize parsing.
urlenp | |
data | |
len |