Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

http_request Struct Reference

A HTTP request. More...


Data Fields

char * cmd
char * ocmd
char * gpc
char * url
char * ver
int status
char * host
int port
char * path
char * hostport
int ssl
char * host_ip_addr_str
char * dbuffer
char ** dvec
int dcount


Detailed Description

A HTTP request.

This includes the method (GET, POST) and the parsed URL.

This is also used whenever we want to match a URL against a URL pattern. This always contains the URL to match, and never a URL pattern. (See struct url_spec).


Field Documentation

char* http_request::cmd
 

Whole command line: method, URL, Version.

char* http_request::dbuffer
 

Buffer with '\0'-delimited domain name.

int http_request::dcount
 

How many parts to this domain? (length of dvec).

char** http_request::dvec
 

List of pointers to the strings in dbuffer.

char* http_request::gpc
 

HTTP method: GET, POST, ..

char* http_request::host
 

Host part of URL.

char* http_request::host_ip_addr_str
 

String with dotted decimal representation of host's IP.

NULL before connect_to()

char* http_request::hostport
 

host[:port].

char* http_request::ocmd
 

Backup of original cmd for CLF logging.

char* http_request::path
 

Path of URL.

int http_request::port
 

Port of URL or 80 (default).

int http_request::ssl
 

Flag if protocol is https.

int http_request::status
 

HTTP Status.

char* http_request::url
 

The URL.

char* http_request::ver
 

Protocol version.


The documentation for this struct was generated from the following file:
Generated on Tue Jun 4 18:54:49 2002 for Privoxy 3.1.1 by doxygen1.2.15