DefaultHTTPVariables structure
Contains information about the received HTTP request header.Syntax
typedef struct DefaultHTTPVariables{
char *httpVersion;
char *method;
char *url;
char *host;
char *date;
char *range;
char *accept;
char *pragma;
char *cookie;
char *referer;
char *ifMatch;
char *ifRange;
char *userAgent;
char *connection;
char *contentType;
char *authorization;
char *cacheControl;
char *ifNoneMatch;
char *contentLength;
char *acceptLanguage;
char *acceptEncoding;
char *ifModifiedSince;
char *ifUnmodifiedSince;
} DefaultHTTPVariables;
Members
httpVersion A pointer to a null-terminated string conaining the HTTP version used by the client. Known values are "1.0" and "1.1".
method A pointer to a null-terminated string conaining the HTTP method used by the client. Known values are "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE" and "CONNECT" (section 5.1.1).
urlhost A pointer to a null-terminated string conaining the host field from the HTTP request header (section 14.23). This field is set to zero if the reqeust header does not include a host field.
date A pointer to a null-terminated string conaining the date field from the HTTP request header (section 14.18). This field is set to zero if the reqeust header does not include a date field.
range A pointer to a null-terminated string conaining the range field from the HTTP request header (section 14.35). This field is set to zero if the reqeust header does not include a range field.
accept A pointer to a null-terminated string conaining the accept field from the HTTP request header (section 14.1). This field is set to zero if the reqeust header does not include a accept field.
pragma A pointer to a null-terminated string conaining the pragma field from the HTTP request header (section 14.32). This field is set to zero if the reqeust header does not include a pragma field.
cookie A pointer to a null-terminated string conaining the cookie field from the HTTP request header (rfc6265 section 4.2). This field is set to zero if the reqeust header does not include a cookie field.
referer A pointer to a null-terminated string conaining the referer field from the HTTP request header (section 14.36). This field is set to zero if the reqeust header does not include a referer field.
ifMatch A pointer to a null-terminated string conaining the if-match field from the HTTP request header (section 14.24). This field is set to zero if the reqeust header does not include a if-match field.
ifRange A pointer to a null-terminated string conaining the if-range field from the HTTP request header (section 14.27). This field is set to zero if the reqeust header does not include a if-range field.
userAgent A pointer to a null-terminated string conaining the user-agent field from the HTTP request header (section 14.43). This field is set to zero if the reqeust header does not include a user-agent field.
connection A pointer to a null-terminated string conaining the connection field from the HTTP request header (section 14.10). This field is set to zero if the reqeust header does not include a connection field.
contentType A pointer to a null-terminated string containing the content-type field from the HTTP request header (section 14.17content-type field.>).
authorization A pointer to a null-terminated string conaining the authorization field from the HTTP request header (section 14.8). This field is set to zero if the reqeust header does not include a authorization field.
cacheControl A pointer to a null-terminated string conaining the cache-control field from the HTTP request header (section 14.9). This field is set to zero if the reqeust header does not include a cache-control field.
ifNoneMatch A pointer to a null-terminated string conaining the if-none-match field from the HTTP request header (section 14.2). This field is set to zero if the reqeust header does not include a if-none-match field.
contentLength A pointer to a null-terminated string conaining the content-length field from the HTTP request header (section 14.13). This field is set to zero if the reqeust header does not include a content-length field.
acceptLanguage A pointer to a null-terminated string conaining the accept-language field from the HTTP request header (section 14.4). This field is set to zero if the reqeust header does not include a accept-language field.
acceptEncoding A pointer to a null-terminated string conaining the accept-encoding field from the HTTP request header (section 14.3). This field is set to zero if the reqeust header does not include a accept-encoding field.
ifModifiedSince A pointer to a null-terminated string conaining the if-modified-since field from the HTTP request header (section 14.25). This field is set to zero if the reqeust header does not include a if-modified-since field.
ifUnmodifiedSince A pointer to a null-terminated string conaining the if-unmodified-since field from the HTTP request header (section 14.28). This field is set to zero if the reqeust header does not include a if-unmodified-since field.
Remarks
These values are not modified and can still contain escaped characters, use function
ConvertEscapedCharactersToBytes to unescape these characters.
Requirements
Minimum supported API | 1.00
|
Header | tvs_server_http_protocol.h
|