HTP  0.5
Data Fields
htp_multipart_part_t Struct Reference

#include <htp_multipart.h>

Data Fields

htp_mpartp_tparser
 
enum htp_multipart_type_t type
 
size_t len
 
bstrname
 
bstrvalue
 
bstrcontent_type
 
htp_table_theaders
 
htp_file_tfile
 

Detailed Description

Holds information related to a part.

Field Documentation

bstr* htp_multipart_part_t::content_type

Part content type, from the Content-Type header. Can be NULL.

htp_file_t* htp_multipart_part_t::file

File data, available only for MULTIPART_PART_FILE parts.

htp_table_t* htp_multipart_part_t::headers

Part headers (htp_header_t instances), using header name as the key.

size_t htp_multipart_part_t::len

Raw part length (i.e., headers and data).

bstr* htp_multipart_part_t::name

Part name, from the Content-Disposition header. Can be NULL.

htp_mpartp_t* htp_multipart_part_t::parser

Pointer to the parser.

enum htp_multipart_type_t htp_multipart_part_t::type

Part type; see the MULTIPART_PART_* constants.

bstr* htp_multipart_part_t::value

Part value; the contents depends on the type of the part: 1) NULL for files; 2) contains complete part contents for preamble and epilogue parts (they have no headers), and 3) data only (headers excluded) for text and unknown parts.


The documentation for this struct was generated from the following file: