给你说个思路吧,先用抓包软件把每一个用户登录时的数据记录下来,然后注册xmlhttp,用send取得cookies,然后构建http头的数据,比如cookies,head
这是很久以前刷一个论坛分用的,最多的时候一秒钟4个回复,如果用IE得10秒才有一个回复,差距太大,所以推荐用winhttp,或者xmlhttp$u2="http://bbs.macd.cn/thread-1818675-1-1.html"
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$cc="cdb_cookietime=2592000; cdb_oldtopics=D1818675D; cdb_fid87=1280247641; cdb_sid=ee9zsa; cdb_visitedfid=87; cdb_auth=LpD7X8Ut2Bf6EHZY0C8mdtT6VjvHVQbaA%2FjF%2Bhuhw8%2B4ZkccOEYjvnxDyaHghZJgPg; AJSTAT_ok_pages=97; AJSTAT_ok_times=1; tvshow=74; cck_lasttime=1280227266343; cck_count=0; cdb_cookietime=2592000; cdb_oldtopics=D1818675D; adv_reply_view_cookie=39e40385f1f5eacb0fb72fdd17e02198; cdb_fid87=1280247641; cdb_sid=ee9zsa; cdb_visitedfid=87; cdb_auth=LpD7X8Ut2Bf6EHZY0C8mdtT6VjvHVQbaA%2FjF%2Bhuhw8%2B4ZkccOEYjvnxDyaHghZJgPg"
$u1="http://bbs.macd.cn/post.php?action=reply&fid=87&tid=1818675&extra=page%3D1&replysubmit=yes"
$u2="http://bbs.macd.cn/forum.php?mod=viewthread&tid=1818675&pid=23351569&page=1&extra=page%3D1&styleid=14#pid23351569"
$a1="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iCafeMedia)"
$oHTTP.Open("POST",$u1,false);post必须大写
$oHTTP.setRequestHeader("Accept","image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*")
$oHTTP.setRequestHeader("Referer",$u2)
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Accept-Encoding","gzip, deflate")
$oHTTP.setRequestHeader("User-Agent",$a1)
$oHTTP.setRequestHeader("Host","bbs.macd.cn")
$oHTTP.setRequestHeader("Cookie",$cc)
$oHTTP.setRequestHeader("Cache-Control","no-cache")
$oHTTP.Send("formhash=b3bc853e&subject=&message=bbbaa")
|