环境:vs2005
语言:c++
问题:怎么获得网页的HTML代码?并自动填写内容,再递交到服务器。
语言:c++
问题:怎么获得网页的HTML代码?并自动填写内容,再递交到服务器。
解决方案 »
- MFC 控件选中问题 求解决
- 导入资源 选择bitmap 是否可以让资源在界面上显示出来
- 用Create创建的按扭,怎样改变背景色?
- base64 不能对编码后的word文档正确解码
- 开道比较难的面试题大家答?牛人来
- 如何对一个多级森林进行数据库设计?(存取)
- 请教一个问题,服务端accept客户端的连接后是否随机采用一个新端口与客户端通信?
- 请进来看看!!如何将数组中的数据的波形画出,并求出波峰的时间和幅值
- 谁能告诉我SqlServer2000和虚拟光驱6.0的注册码?绝对给分
- [问]开发三维图像的请进,UP者有分哦?
- 请教各位前辈 'DnsModifyRecordsInSet_A' : undeclared identifier ?
- 北京红樱枫软件有限公司 有人知道吗??
"http://www.163.com/fxxxboss.php"
2.获取hostname
www.163.com
3.gethostbyname() 获取ip
4.connect ip
5.写请求头:
GET /fxxxboss.php HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0)
Host: www.163.com
6.send, and recv
7.读取recv内容
HTTP/1.1 200 OK
Date: Mon, 09 Nov 2009 12:18:43 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Pragma: no-cache
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Expires: Sun, 01 Jan 1984 12:34:56 GMT
Vary: Accept-Encoding
Content-Length: 7347
Content-Type: text/html; charset=UTF-8
xxxxxxxxxxxxxx <-html 内容
p.s: 注意Content-Length内容,这方面自己找资料看吧,半小时差不多都明白了.
或是直接用 wininet都可以。