HTTPSession structure
Contains information about the received HTTP request header.Syntax
typedef struct HTTPSession{
struct DefaultHTTPVariables *defaultVariables;
void *otherVariablesStringIndexedCollection;
void *optionsQuestionmarkStringIndexedCollection;
void *cookiesStringIndexedCollection;
void *buffer;
void *urlBuffer;
void *cookieBuffer;
int headerSize;
int headerRestSize;
int timeLeft;
} HTTPSession;
Members
defaultVariablesotherVariablesStringIndexedCollectionoptionsQuestionmarkStringIndexedCollection A pointer to a collection containing the fields from the HTTP request URL behind the question mark. This member can be used by the function GetCollectionItem. The values are not modified and can still contain escaped characters, use function ConvertEscapedCharactersToBytes to unescape these characters.
cookiesStringIndexedCollection A pointer to a collection containing the cookies send by the client. This member can be used by the function GetCollectionItem. The values are not modified and can still contain escaped characters, use function ConvertEscapedCharactersToBytes to unescape these characters.
buffer A pointer to the buffer containing the bufferd request header and possible content. The actual size of the header is described in member headerSize. The size of the accidently received content is described in member headerRestSize.
The header has been broken in fragments separated by zero bytes:- The line is divided like: Method|URL|HTTP/version|;
- The other lines are divided like: name|value|;
urlBuffer A pointer with a copy of the URL. This copy is used to fill the member optionsQuestionmarkStringIndexedCollection.
The URL has been broken in fragments separated by zero bytes:- The first zero byte is placed where the questionmark used to be;
- From the question mark every '&' and '=' char are replaced by a zero byte;
cookieBuffer A pointer with a copy of the cookies. This copy is used to fill the member cookiesStringIndexedCollection.
The URL has been broken in fragments separated by zero bytes:- Every ';' and '=' char are replaced by a zero byte;
headerSize A integer containing the size of the portion of member buffer that contains the received header.
headerRestSize A integer containing the size of the portion of member buffer that contains the received content that did not belong to the header. This content starts at position headerSize.
timeLeft This parameter holds the time that was left for the client to transfer the header to the server. This field is only filled in if parameter maxTimeToReceive was valid and flag RPF_USE_TIME_LIMIT was set in function RecvAndParseHTTP.
Requirements
Minimum supported API | 1.00
|
Header | tvs_server_http_protocol.h
|