#include <HttpRequest.h>
Public Member Functions | |
CHttpRequest () | |
virtual | ~CHttpRequest () |
void | Clear () |
CString | GetURL () |
BOOL | SetURL (LPCTSTR pszURL) |
void | SetUserAgent (LPCTSTR pszUserAgent) |
void | AddHeader (LPCTSTR pszKey, LPCTSTR pszValue) |
void | SetPostData (LPCVOID pBody, DWORD nBody) |
void | LimitContentLength (DWORD nLimit) |
void | SetNotify (HWND hWnd, UINT nMsg, WPARAM wParam=0) |
int | GetStatusCode () |
BOOL | GetStatusSuccess () |
CString | GetStatusString () |
CString | GetHeader (LPCTSTR pszName) |
CString | GetResponseString (UINT nCodePage=CP_UTF8) |
CBuffer * | GetResponseBuffer () |
BOOL | InflateResponse () |
BOOL | Execute (BOOL bBackground) |
BOOL | IsPending () |
BOOL | IsFinished () |
void | Cancel () |
Static Public Member Functions | |
static void | CloseThread (HANDLE *phThread, LPCTSTR pszName) |
Protected Member Functions | |
int | Run () |
void | RunRequest () |
void | RunResponse (HINTERNET hURL) |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID lpParameter) |
Protected Attributes | |
CCriticalSection | m_pSection |
HANDLE | m_hThread |
HINTERNET | m_hInternet |
BOOL | m_bCancel |
CString | m_sURL |
CString | m_sUserAgent |
CString | m_sRequestHeaders |
DWORD | m_nLimit |
int | m_nStatusCode |
CString | m_sStatusString |
CBuffer * | m_pPost |
CBuffer * | m_pResponse |
CMapStringToString | m_pResponseHeaders |
HWND | m_hNotifyWnd |
UINT | m_nNotifyMsg |
WPARAM | m_nNotifyParam |
|
Definition at line 34 of file HttpRequest.cpp. References m_hInternet, m_hNotifyWnd, m_hThread, m_nLimit, m_nStatusCode, m_pPost, m_pResponse, m_sUserAgent, NULL, Settings, and CSettings::SmartAgent(). |
|
Definition at line 46 of file HttpRequest.cpp. References Clear(). |
|
Definition at line 95 of file HttpRequest.cpp. References IsPending(), m_pSection, and m_sRequestHeaders. Referenced by CSearchDetailPanel::ExecuteRequest(), and CTorrentTrackerDlg::OnRun(). |
|
Definition at line 261 of file HttpRequest.cpp. References m_bCancel, m_hInternet, m_hThread, m_pSection, and NULL. Referenced by CSearchDetailPanel::CancelPreview(), Clear(), Execute(), CTorrentTrackerDlg::OnDestroy(), CTorrentTrackerDlg::OnTorrentRefresh(), and CVersionChecker::Stop(). |
|
Definition at line 54 of file HttpRequest.cpp. References Cancel(), m_nLimit, m_nStatusCode, m_pPost, m_pResponse, m_pResponseHeaders, m_pSection, m_sRequestHeaders, m_sStatusString, m_sURL, and NULL. Referenced by CSearchDetailPanel::ExecuteRequest(), CTorrentTrackerDlg::OnRun(), CVersionChecker::Start(), and ~CHttpRequest(). |
|
Definition at line 413 of file HttpRequest.cpp. References CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by CTorrentTrackerDlg::OnDestroy(), CTorrentSeedDlg::OnDestroy(), CTorrentTrackerDlg::OnTimer(), CTorrentTrackerDlg::OnTorrentRefresh(), CBTClients::ShutdownRequests(), and CVersionChecker::Stop(). |
|
Definition at line 224 of file HttpRequest.cpp. References Cancel(), IsPending(), m_bCancel, m_hThread, m_nStatusCode, m_pPost, m_pResponse, m_pResponseHeaders, m_sURL, NULL, Run(), and ThreadStart(). Referenced by CSearchDetailPanel::ExecuteRequest(), CTorrentTrackerDlg::OnRun(), CBTTrackerRequest::Run(), and CVersionChecker::UndertakeRequest(). |
|
Definition at line 165 of file HttpRequest.cpp. References IsPending(), m_pResponseHeaders, and m_pSection. Referenced by CSearchDetailPanel::ExecuteRequest(), and InflateResponse(). |
|
Definition at line 193 of file HttpRequest.cpp. References IsPending(), m_pResponse, m_pSection, and NULL. Referenced by CSearchDetailPanel::ExecuteRequest(), CTorrentTrackerDlg::OnRun(), and CBTTrackerRequest::Process(). |
|
Definition at line 180 of file HttpRequest.cpp. References IsPending(), CBuffer::m_nLength, m_pResponse, m_pSection, NULL, and CBuffer::ReadString(). Referenced by CVersionChecker::UndertakeRequest(). |
|
Definition at line 146 of file HttpRequest.cpp. References IsPending(), m_nStatusCode, and m_pSection. Referenced by CSearchDetailPanel::ExecuteRequest(), and CVersionChecker::UndertakeRequest(). |
|
Definition at line 159 of file HttpRequest.cpp. References m_pSection, and m_sStatusString. |
|
Definition at line 152 of file HttpRequest.cpp. References IsPending(), m_nStatusCode, and m_pSection. Referenced by CSearchDetailPanel::ExecuteRequest(). |
|
Definition at line 88 of file HttpRequest.cpp. References m_pSection, and m_sURL. |
|
Definition at line 200 of file HttpRequest.cpp. References GetHeader(), CBuffer::Inflate(), IsPending(), m_pResponse, m_pSection, NULL, and CBuffer::Ungzip(). Referenced by CTorrentTrackerDlg::OnRun(), and CBTTrackerRequest::Process(). |
|
Definition at line 256 of file HttpRequest.cpp. References m_hInternet, m_nStatusCode, and NULL. |
|
Definition at line 251 of file HttpRequest.cpp. References m_hInternet, and NULL. Referenced by AddHeader(), Execute(), GetHeader(), GetResponseBuffer(), GetResponseString(), GetStatusCode(), GetStatusSuccess(), InflateResponse(), LimitContentLength(), SetPostData(), SetURL(), and SetUserAgent(). |
|
Definition at line 128 of file HttpRequest.cpp. References IsPending(), m_nLimit, and m_pSection. Referenced by CSearchDetailPanel::ExecuteRequest(). |
|
Definition at line 305 of file HttpRequest.cpp. References m_bCancel, m_hInternet, m_hNotifyWnd, m_nNotifyMsg, m_nNotifyParam, m_nStatusCode, m_pSection, m_sUserAgent, NULL, and RunRequest(). Referenced by Execute(), and ThreadStart(). |
|
Definition at line 334 of file HttpRequest.cpp. References m_hInternet, m_sRequestHeaders, m_sURL, NULL, and RunResponse(). Referenced by Run(). |
|
Definition at line 347 of file HttpRequest.cpp. References CBuffer::EnsureBuffer(), m_bCancel, CBuffer::m_nLength, m_nLimit, m_nStatusCode, CBuffer::m_pBuffer, m_pResponse, m_pResponseHeaders, m_sStatusString, and NULL. Referenced by RunRequest(). |
|
Definition at line 135 of file HttpRequest.cpp. References m_hNotifyWnd, m_nNotifyMsg, m_nNotifyParam, and m_pSection. |
|
Definition at line 106 of file HttpRequest.cpp. References CBuffer::Add(), IsPending(), m_pPost, m_pSection, and NULL. |
|
Definition at line 79 of file HttpRequest.cpp. References IsPending(), m_pSection, m_sURL, and NULL. Referenced by CSearchDetailPanel::ExecuteRequest(), CTorrentTrackerDlg::OnRun(), and CVersionChecker::UndertakeRequest(). |
|
Definition at line 121 of file HttpRequest.cpp. References IsPending(), m_pSection, and m_sUserAgent. |
|
Definition at line 299 of file HttpRequest.cpp. References Run(). Referenced by Execute(). |
|
Definition at line 64 of file HttpRequest.h. Referenced by Cancel(), Execute(), Run(), and RunResponse(). |
|
Definition at line 63 of file HttpRequest.h. Referenced by Cancel(), CHttpRequest(), IsFinished(), IsPending(), Run(), and RunRequest(). |
|
Definition at line 76 of file HttpRequest.h. Referenced by CHttpRequest(), Run(), and SetNotify(). |
|
Definition at line 62 of file HttpRequest.h. Referenced by Cancel(), CHttpRequest(), and Execute(). |
|
Definition at line 69 of file HttpRequest.h. Referenced by CHttpRequest(), Clear(), LimitContentLength(), and RunResponse(). |
|
Definition at line 77 of file HttpRequest.h. Referenced by Run(), and SetNotify(). |
|
Definition at line 78 of file HttpRequest.h. Referenced by Run(), and SetNotify(). |
|
Definition at line 70 of file HttpRequest.h. Referenced by CHttpRequest(), Clear(), Execute(), GetStatusCode(), GetStatusSuccess(), IsFinished(), Run(), and RunResponse(). |
|
Definition at line 72 of file HttpRequest.h. Referenced by CHttpRequest(), Clear(), Execute(), and SetPostData(). |
|
Definition at line 73 of file HttpRequest.h. Referenced by CHttpRequest(), Clear(), Execute(), GetResponseBuffer(), GetResponseString(), InflateResponse(), and RunResponse(). |
|
Definition at line 74 of file HttpRequest.h. Referenced by Clear(), Execute(), GetHeader(), and RunResponse(). |
|
Definition at line 61 of file HttpRequest.h. Referenced by AddHeader(), Cancel(), Clear(), GetHeader(), GetResponseBuffer(), GetResponseString(), GetStatusCode(), GetStatusString(), GetStatusSuccess(), GetURL(), InflateResponse(), LimitContentLength(), Run(), SetNotify(), SetPostData(), SetURL(), and SetUserAgent(). |
|
Definition at line 68 of file HttpRequest.h. Referenced by AddHeader(), Clear(), and RunRequest(). |
|
Definition at line 71 of file HttpRequest.h. Referenced by Clear(), GetStatusString(), and RunResponse(). |
|
Definition at line 66 of file HttpRequest.h. Referenced by Clear(), Execute(), GetURL(), RunRequest(), and SetURL(). |
|
Definition at line 67 of file HttpRequest.h. Referenced by CHttpRequest(), Run(), and SetUserAgent(). |