Home | Documentation |
ISAPI_HttpRequest Class Reference
updated Mon Feb 22 2016
|
#include <ISAPI_HttpContext.h>
Public Member Functions | |
ISAPI_HttpRequest (EXTENSION_CONTROL_BLOCK *pECB=NULL) | |
virtual | ~ISAPI_HttpRequest () |
destructor. More... | |
EXTENSION_CONTROL_BLOCK * | ECB () const |
Public Member Functions inherited from HttpRequest | |
HttpRequest () | |
constructor. More... | |
virtual | ~HttpRequest () |
destructor. More... | |
virtual Method | getMethod () const |
virtual const char * | getQueryString () |
virtual const char * | getBody () |
virtual void * | getData () |
virtual unsigned long | getContentLength () const |
return the lenght of the body of the request. More... | |
virtual bool | operator<< (std::istream &) |
Protected Member Functions | |
void | ParseHeaders (EXTENSION_CONTROL_BLOCK &ecb) |
extract the request headers from the content block More... | |
bool | AddHeader (EXTENSION_CONTROL_BLOCK &ecb, const char *pszHeaderName, LPCTSTR pszVariableName) |
bool | ReadHeader (EXTENSION_CONTROL_BLOCK &ecb, LPCTSTR pszVariableName, std::string &strHeaderValue) |
void | ReadCustomHeaders (EXTENSION_CONTROL_BLOCK &ecb) |
Protected Attributes | |
bool | m_bHeadersParsed |
have the content headers already been parsed ? More... | |
EXTENSION_CONTROL_BLOCK * | m_pECB |
Additional Inherited Members | |
Public Types inherited from HttpRequest | |
enum | Method { GET = 0, POST = 1 } |
Public Attributes inherited from HttpRequest | |
std::string | _querystring |
char * | _body |
unsigned long | _contentlength |
Method | _method |
encapsulate special content header parsing if we are running on a non-standard server.
ISAPI_HttpRequest::ISAPI_HttpRequest | ( | EXTENSION_CONTROL_BLOCK * | pECB = NULL | ) |
Constructor, parsing also content headers from the control block.
pECB | the ISAPI extension control block passed in by IIS. |
|
virtual |
destructor.
|
protected |
add a ECB header variable to our content headers collection.
ecb | the extension control block of the current IIS request |
pszHeaderName | the HTTP - standard name of the content header. |
pszVariableName | the name invented by Micro$oft for the same thing. |
EXTENSION_CONTROL_BLOCK * ISAPI_HttpRequest::ECB | ( | ) | const |
|
protected |
extract the request headers from the content block
|
protected |
read all HTTP headers that were not already parsed into one of the ISAPI - ECB variables.
|
protected |
Read a variable from the control block.
ecb | the Extension Control Block. |
pszVariableName | the name of the variable to read (output) the value of the variable |
|
protected |
have the content headers already been parsed ?
|
protected |