public void httpRequest(string url, HttpStateCB cb) { if (m_myHttpState != HttpState.E_HTTP_STATE_DOWNLOADING) { m_myUrl = url; m_httpStateCB = cb; ThreadStart threadStart = new ThreadStart(httpDownloadProc); Thread thread = new Thread(threadStart); thread.Start(); } }
public void httpPostRequest(string url, HttpStateCB cb, byte[] postData) { if (m_myHttpState != HttpState.E_HTTP_STATE_DOWNLOADING) { m_myUrl = url; m_httpStateCB = cb; mPostData = postData; ThreadStart threadStart = new ThreadStart(httpPostProc); Thread thread = new Thread(threadStart); thread.Start(); } }