100分求助一个vc向url页post数据例子 wininet的CInternetSession类相关,用抓包工具抓个包,然后模拟提交数据即可。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你想的太复杂,不是做抓包之类的工作,我只是要个界面手动将pos参数发送出去例子,这是个作业,我是做c#的想找个代码交给朋友就行了。 Begin an HTTP session. Create a CInternetSession object. Initializes WinInet and connects to server. Connect to an HTTP server. Use CInternetSession::GetHttpConnection. Returns a CHttpConnection object. Open an HTTP request. Use CHttpConnection::OpenRequest. Returns a CHttpFile object. Send an HTTP request. Use CHttpFile::AddRequestHeaders and CHttpFile::SendRequest. Finds the file. Returns FALSE if the file is not found. Read from the file. Use CHttpFile. Reads the specified number of bytes using a buffer you supply. Handle exceptions. Use the CInternetException class. Handles all common Internet exception types. End the HTTP session. Dispose of the CInternetSession object. Automatically cleans up open file handles and connections. 具体网页要具体分析的。。不同的网页post的参数都不一样!! 参考这个文章,应该有价值http://blog.csdn.net/bobui/article/details/8475062http://blog.csdn.net/huangxy10/article/details/7662322 看了,我用vs自带的例子试试,主要是没用过vc不知道如何开始界面之类的,不像c#直接画个界面放两个文本框就可以编译了,搞的一头雾水。 http://pan.baidu.com/s/1CETFs 这年头什么问题都有问的,给服务器POST数据的方法很多,就是不自己动手查询一下,对于这种无聊的问题,直接PASS 写一个sock,再封装一个post包! 请问 MFC中有没有像QQ消息框那样的控件? 关于C++对象与windows资源对象两者的区别,请高手帮忙解释下,谢谢:) 如何实现arp欺骗? dll的菜鸟问题 小弟搞到了一些视频教学的资料,可以刻给大家~!可能对大家学习有很大的帮助~! 哪里有BoundsChecker for vc6.0下载? 急问:COM能不能应用到UNIX系统下,在线等. 关于help文档&安装程序 求救 void CTest1Dlg::OnPaint() 中ONPAINT 做什么用好象去掉该函数也没有什么关系? 在MFC中,让ListControl控件展开,有几种方法? MFC编辑框控件和单选控件的使用
Create a CInternetSession object.
Initializes WinInet and connects to server.
Connect to an HTTP server.
Use CInternetSession::GetHttpConnection.
Returns a CHttpConnection object.
Open an HTTP request.
Use CHttpConnection::OpenRequest.
Returns a CHttpFile object.
Send an HTTP request.
Use CHttpFile::AddRequestHeaders and CHttpFile::SendRequest.
Finds the file. Returns FALSE if the file is not found.
Read from the file.
Use CHttpFile.
Reads the specified number of bytes using a buffer you supply.
Handle exceptions.
Use the CInternetException class.
Handles all common Internet exception types.
End the HTTP session.
Dispose of the CInternetSession object.
Automatically cleans up open file handles and connections.
http://blog.csdn.net/bobui/article/details/8475062
http://blog.csdn.net/huangxy10/article/details/7662322