注册 登录
编程论坛 VB6论坛

关于投票器

astronaut147 发布于 2013-09-30 15:28, 605 次点击
请大虾帮忙看看这个网站投票的ID如何找,post时每个被投票的人ID是多少?
http://www.

[ 本帖最后由 astronaut147 于 2013-9-30 15:31 编辑 ]
4 回复
#2
astronaut1472013-09-30 15:33
POST /vote.php HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://www.
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; CIBA; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
Host: www.
Content-Length: 11
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=95cb43e8183fad74026627b43d3ea1c8; YP_think_language=%22cn%22; YP_onlineid=%22d16c152174cda72b88e04fd5b0b9f4e7%22

id=AGBSZwsx

HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Mon, 30 Sep 2013 07:33:01 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip
#3
astronaut1472013-09-30 15:34
id=AGBSZwsx 这个id每投一次就变化了
#4
风吹过b2013-09-30 16:53
笨的方法:
读到 网页后,取整个源代码,然后查找你要投票的姓名。
找到后,从这个位置向后,搜索第一个 标记
<div class="vote_btn">
然后到这个标志里,找到这个ID 。


-----------------------
找不到姓名时,需要换一页重新读网页,然后再重新搜索,所以你也要解决读下一页情况。

[ 本帖最后由 风吹过b 于 2013-9-30 16:54 编辑 ]
#5
ckq2013-10-02 20:11
VB如何能编写出A4纸大小的一种模板?窗体不够大,做出的模板只有A4纸的2/3。哪位前辈给指导一下,在这里先谢谢了。
1