我的思路:
用CAsyncSocket发HTTP GET请求,收到含有Form和Input的页面,把每个Input分析出来,形成http://www.xxx.com/xxx.asp?inputname1=value1&inputname2=value2....
其中xxx.asp是Form的Action。
再用CAsyncSocket发HTTP POST请求,发出去。
用CAsyncSocket发HTTP GET请求,收到含有Form和Input的页面,把每个Input分析出来,形成http://www.xxx.com/xxx.asp?inputname1=value1&inputname2=value2....
其中xxx.asp是Form的Action。
再用CAsyncSocket发HTTP POST请求,发出去。
解决方案 »
- 求高手指点,如何设置选中区域颜色变成蓝色并且还能看见区域中的字
- 关于MFC使用VirtualFreeEx
- 求助:关于串口通信?
- CSplitterWnd类的虚函数OnDrawSplitter的调用时机是什么?是不是有类似用Invalidate来调用OnDraw的做法?
- 关于SNMP协议的OID的问题!
- InitApplication和InitInstance的用途??
- LogonUser 函数的用法!
- VC如何获得每个输出字符的宽和高像素是多少
- 为什么打开工程时提示无法访问Class Wizard?但仍可运行工程!
- 关于窗口过程函数DefWindowProc函数的用法
- 请问extern "C"是什么意思?
- 请问怎么样才能得到当前日期的前一日期与后一日期??
{
DWORD dwServiceType;
CString strServer,strObject;
unsigned short nPort; AfxParseURL(sURL,dwServiceType,strServer,strObject,nPort); CHttpFile* pURLFile;
CInternetSession isSession; CHttpConnection* isHttp=isSession.GetHttpConnection(strServer,nPort);
pURLFile=isHttp->OpenRequest(CHttpConnection::HTTP_VERB_POST,strObject);
CString strHeader=_T("Content-Type: application/x-www-form-urlencoded");
pURLFile->SendRequest(strHeader,(LPVOID)(LPCTSTR)szRequest, szRequest.GetLength());
....//pURLFile为返回的页面内容
}