HTP  0.5
Data Fields
htp_uri_t Struct Reference

#include <htp.h>

Data Fields

bstrscheme
 
bstrusername
 
bstrpassword
 
bstrhostname
 
bstrport
 
int port_number
 
bstrpath
 
bstrquery
 
bstrfragment
 

Detailed Description

URI structure. Each of the fields provides access to a single URI element. Where an element is not present in a URI, the corresponding field will be set to NULL or -1, depending on the field type.

Field Documentation

bstr* htp_uri_t::fragment

Fragment identifier. This field will rarely be available in a server-side setting, but it's not impossible to see it.

bstr* htp_uri_t::hostname

Hostname.

bstr* htp_uri_t::password

Password.

bstr* htp_uri_t::path

The path part of this URI.

bstr* htp_uri_t::port

Port, as string.

int htp_uri_t::port_number

Port, as number. This field will contain HTP_PORT_NONE if there was no port information in the URI and HTP_PORT_INVALID if the port information was invalid (e.g., it's not a number or it falls out of range.

bstr* htp_uri_t::query

Query string.

bstr* htp_uri_t::scheme

Scheme, e.g., "http".

bstr* htp_uri_t::username

Username.


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