如何伪造cookies 用curl来获取数据?

WBOY
Release: 2016-06-23 13:53:24
Original
1045 people have browsed it

接口是这个:http://sbcx.saic.gov.cn:9080/tmois/wszhcx_pageZhcxMain.xhtml?type=reg&intcls=®Num=12886711&paiType=0

不知如何伪造cookies 用curl来获取数据?


回复讨论(解决方案)

你想伪造成什么样子,弄个跨站脚本的链接发过去给他访问,然后你就拥有了他的cookie

只要能获取数据就行。

curl --cookie cookiename=cookievalue  http://xxx 

我要获取数据啊,你这不是查询到的数据呢。

有人会吗?帮忙看看啦。

提交查询条件的同时,需提交验证码
你做到了,就成功了

提交查询条件的同时,需提交验证码
你做到了,就成功了


就是不知道怎么操作呢?

先模拟获取浏览器的cookie,url带着参数和cookie参数,再向url请求结果

嘿嘿!!!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template