代码如下:模拟POST动作
   CString strHeaders = _T("Content-Type: application/x-www-form-urlencoded");
   CString strFormData = _T("name=userid&password=password&action=submit");
   CInternetSession session;
   CHttpConnection* pConnection = session.GetHttpConnection(_T("ServerNameHere"));   CHttpFile* pFile =pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, _T("FormActionHere"));   BOOL result = pFile->SendRequest(strHeaders,(LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());///一个输入用户名和密码,怎么样才能知道,输入的密码正确与否呢,想得到服务器的返回,该怎么做,能写出原码来吗??