Fatman
04-02-2004, 09:27 AM
Anyone know much about this:
CString strHeaders = _T("Content-Type: multipart/form-data ");
CString strFormData = _T("submit1=Submit");
CInternetSession session;
CHttpConnection* pConnection = session.GetHttpConnection(_T("www.url.com"));
CHttpFile* pFile =pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST,_T("/folder/process.php"));
BOOL result = pFile->SendRequest(strHeaders,(LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());
doesnt seem to work???
any ideas?
CString strHeaders = _T("Content-Type: multipart/form-data ");
CString strFormData = _T("submit1=Submit");
CInternetSession session;
CHttpConnection* pConnection = session.GetHttpConnection(_T("www.url.com"));
CHttpFile* pFile =pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST,_T("/folder/process.php"));
BOOL result = pFile->SendRequest(strHeaders,(LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());
doesnt seem to work???
any ideas?