HTP
0.5
|
#include <htp.h>
Data Fields | |
bstr * | scheme |
bstr * | username |
bstr * | password |
bstr * | hostname |
bstr * | port |
int | port_number |
bstr * | path |
bstr * | query |
bstr * | fragment |
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.
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.