HTP  0.5
Data Fields
htp_file_t Struct Reference

#include <htp.h>

Data Fields

enum htp_file_source_t source
 
bstrfilename
 
int64_t len
 
char * tmpname
 
int fd
 

Detailed Description

Used to represent files that are seen during the processing of HTTP traffic. Most commonly this refers to files seen in multipart/form-data payloads. In addition, PUT request bodies can be treated as files.

Field Documentation

int htp_file_t::fd

The file descriptor used for external storage, or -1 if unused.

bstr* htp_file_t::filename

File name, as provided (e.g., in the Content-Disposition multipart part header.

int64_t htp_file_t::len

File length.

enum htp_file_source_t htp_file_t::source

Where did this file come from? Possible values: HTP_FILE_MULTIPART and HTP_FILE_PUT.

char* htp_file_t::tmpname

The unique filename in which this file is stored on the filesystem, when applicable.


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