|
本帖最后由 robocat 于 2011-5-2 23:08 编辑
这几天学习了一下post
想做一个自动发帖的程序
抓包分析了下,抓的包如下
POST /b851161/put.asp HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://www.xici.net/b851161/board.asp
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host: www.xici.net
Content-Length: 314
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ServerID=1055; SessionID=743F53643B5AE356; uid=9375560; __utmc=207079066; CityId=142320100; HostID=c0ace25b7b7157f3-e2bb78f2b0e98101b6c634ca493aa098; __utma=207079066.815903632.1301446474.1304146990.1304153039.78; __utmz=207079066.1303884619.55.4.utmccn=(organic)|utmcsr=google|utmctr=%E5%B0%BC%E5%BD%A9%E6%89%8B%E6%9C%BA+399|utmcmd=organic; desktop=1; __utmb=207079066; cs_EA2C9671066D194E=1; cs_743F53643B5AE356=1; cs_5B7487561996FA7A=1; FullCookie11042515395122=1; FullCookie11042716331984=1; FullCookie11042015554827=1
OpType=&ChangeTopic=&RecommDocs=-1&CoolDocs=-1&DocRight=-1&MoveDocs=-1&doc_type=0&h=8DB9A9E8842BE18063B97058850DABC0&puttype=1&refType=geo&doc_title=%D1%D0%BE%BF%CA%FD%BE%DD%A3%AC%BD%F8%D0%D0%D7%A5%B0%FC%B2%E2%CA%D4&doc_topic=&doc_text=%B1%BE%CC%FB%CE%DE%CA%B5%BC%CA%D2%E2%D2%E5%A1%A3%A1%A3%D2%BB%BB%E1%BE%CD%C9%BE
写了个程序,第一次可以发出去,但是第二次再发,就提示“发表的太快了”,就不给发了。
重新抓了个包,发现其中只有h=的数字不同,怀疑这个数据记录了时间,但是不怎么怎么处理才可以
第二次的包如下
OpType=&ChangeTopic=&RecommDocs=-1&CoolDocs=-1&DocRight=-1&MoveDocs=-1&doc_type=0&h=7082DE616A9C99D131773F9F604EFFF8&puttype=1&refType=geo&doc_title=%BC%CC%D0%F8%B2%E2%CA%D4%D7%A5%B0%FC%B7%D6%CE%F6&doc_topic=&doc_text=%C4%F1%CE%F7%EC%F4%D5%E6%C4%D1%B8%E3%B0%A1
谁能指点一下啊、 |
求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。 友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
|