BugSplat Native Windows DLL  3.6.0.0
BugSplat API reference for native Windows applications.
GenericHTTPClient Class Reference

Classes

struct  __GENERIC_HTTP_ARGUMENT
 

Public Types

enum  RequestMethod { RequestUnknown =0, RequestGetMethod =1, RequestPostMethod =2, RequestPutMethod =5 }
 
enum  TypePostArgument { TypeUnknown =0, TypeNormal =1, TypeBinary =2 }
 
typedef struct GenericHTTPClient::__GENERIC_HTTP_ARGUMENT GenericHTTPArgument
 

Public Member Functions

BOOL Connect (CString szAddress, CString szAgent=__DEFAULT_AGENT_NAME, unsigned short nPort=INTERNET_DEFAULT_HTTP_PORT, CString szUserAccount=_T(""), CString szPassword=_T(""))
 
BOOL Close ()
 
BOOL Reconnect ()
 
VOID InitilizePutPostArguments ()
 
VOID AddPutPostArguments (LPCTSTR szName, DWORD nValue)
 
VOID AddPutPostArguments (LPCTSTR szName, LPCTSTR szValue, BOOL bBinary=FALSE)
 
BOOL Request (LPCTSTR szURL, int nMethod=GenericHTTPClient::RequestGetMethod, LPCTSTR szAgent=__DEFAULT_AGENT_NAME)
 
BOOL RequestOfURI (LPCTSTR szURI, int nMethod=GenericHTTPClient::RequestGetMethod)
 
BOOL Response (LPWSTR pHeaderBuffer, DWORD dwHeaderBufferLength, LPWSTR pBuffer, DWORD dwBufferLength, DWORD &dwResultSize)
 
LPCTSTR QueryHTTPResponse ()
 
LPCTSTR QueryHTTPResponseHeader ()
 
LPCTSTR GetContentType (LPCTSTR szName)
 
VOID ParseURL (LPCTSTR szURL, LPTSTR szAddress, int nAddSize, LPTSTR szURI, int nUriSize)
 

Static Public Member Functions

static GenericHTTPClient::RequestMethod GetMethod (int nMethod)
 
static GenericHTTPClient::TypePostArgument GetPostArgumentType (int nType)
 

Protected Member Functions

DWORD ResponseOfBytes (PBYTE pBuffer, DWORD dwSize)
 
DWORD GetPostArguments (LPTSTR szArguments, DWORD dwLength)
 
VOID EncodePlusCharacters (LPTSTR szArguments, DWORD dwLength)
 
BOOL RequestPost (LPCTSTR szURI)
 
BOOL RequestPut (LPCTSTR szURI)
 
BOOL RequestGet (LPCTSTR szURI)
 
DWORD SendPutFileData ()
 
VOID DebuggerConsoleMessage ()
 

Protected Attributes

std::vector< GenericHTTPArgument_vArguments
 
TCHAR _szHTTPResponseHTML [__SIZE_HTTP_BUFFER]
 
TCHAR _szHTTPResponseHeader [__SIZE_HTTP_BUFFER]
 
TCHAR _szCacheAddress [__SIZE_BUFFER]
 
TCHAR _szCacheAgent [__SIZE_BUFFER]
 
TCHAR _szCacheUser [__SIZE_BUFFER]
 
TCHAR _szCachePwd [__SIZE_BUFFER]
 
unsigned short _nCachePort
 
HINTERNET _hHTTPOpen
 
HINTERNET _hHTTPConnection
 
HINTERNET _hHTTPRequest
 
DWORD _dwError
 
LPCTSTR _szHost
 
DWORD _dwPort
 

The documentation for this class was generated from the following file: