htp_content_handlers.c File Reference

#include "htp_config_auto.h"
#include "htp_private.h"

Functions

htp_status_t htp_ch_urlencoded_callback_request_body_data (htp_tx_data_t *d)
htp_status_t htp_ch_urlencoded_callback_request_headers (htp_tx_t *tx)
htp_status_t htp_ch_urlencoded_callback_request_line (htp_tx_t *tx)
htp_status_t htp_ch_multipart_callback_request_body_data (htp_tx_data_t *d)
htp_status_t htp_ch_multipart_callback_request_headers (htp_tx_t *tx)

Detailed Description

Author:
Ivan Ristic <ivanr@webkreator.com>

Function Documentation

htp_status_t htp_ch_multipart_callback_request_body_data ( htp_tx_data_t d  ) 

Finalize Multipart processing.

Parameters:
[in] d 
Returns:
HTP_OK on success, HTP_ERROR on failure.
htp_status_t htp_ch_multipart_callback_request_headers ( htp_tx_t tx  ) 

Inspect request headers and register the Multipart request data hook if it contains a multipart/form-data body.

Parameters:
[in] connp 
Returns:
HTP_OK if a new parser has been setup, HTP_DECLINED if the MIME type is not appropriate for this parser, and HTP_ERROR on failure.
htp_status_t htp_ch_urlencoded_callback_request_body_data ( htp_tx_data_t d  ) 

This callback function feeds request body data to a Urlencoded parser and, later, feeds the parsed parameters to the correct structures.

Parameters:
[in] d 
Returns:
HTP_OK on success, HTP_ERROR on failure.
htp_status_t htp_ch_urlencoded_callback_request_headers ( htp_tx_t tx  ) 

Determine if the request has a Urlencoded body, and, if it does, create and attach an instance of the Urlencoded parser to the transaction.

Parameters:
[in] connp 
Returns:
HTP_OK if a new parser has been setup, HTP_DECLINED if the MIME type is not appropriate for this parser, and HTP_ERROR on failure.
htp_status_t htp_ch_urlencoded_callback_request_line ( htp_tx_t tx  ) 

Parses request query string, if present.

Parameters:
[in] connp 
[in] raw_data 
[in] raw_len 
Returns:
HTP_OK if query string was parsed, HTP_DECLINED if there was no query string, and HTP_ERROR on failure.

Generated on 1 Jan 2017 for HTP by  doxygen 1.6.1