|

5精币
httpwatch抓的stream:
POST /hnfp/gaResidentCmpl/ajaxPage.do HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://59.212.197.35:8080/hnfp/gaResidentCmpl/list.do
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Host: 59.212.197.35:8080
Content-Length: 190
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: SESSION=7d0aa8a0-a80d-41db-835d-fa2b0cf6433f; route=b824814f9feaa36e80d331200f68ce21
isRepair=0®ionType=householdAndResidence&gmsfhm=&householdRegionCode=469026000000&residenceRegionCode=469026000000&startAge=&endAge=&xm=&mz=&startBirthDate=&endBirthDate=&xb=&hkxz=&page=4
httpwatch返回的内容是一些个人的信息
我模仿教程写的:
url="http://59.212.197.35:8080/hnfp/gaResidentCmpl/ajaxPage.do"
data="isRepair=0®ionType=householdAndResidence&gmsfhm=&householdRegionCode=469026000000&residenceRegionCode=469026000000&startAge=&endAge=&xm=&mz=&startBirthDate=&endBirthDate=&xb=&hkxz=&page=4"
调试输出(到文本(网页_访问(url,1,data)))
调试输出是这样的:<head>
<title>UTrust Central Authentication Service</title>
<script>
window.location="http://59.212.197.35:8080/hnfp/gaResidentCmpl/ajaxPage.do?ticket=ST-155411-D35WVM0rhfWEbkNl8dYK";
</script>
</head>
<body bgcolor="#0044AA" link="#ffffff" alink="#ffffff" vlink="#ffffff">
<noscript>
<p>Login successful.</p>
<p>
Click <a >here</a>
to access the service you requested.
</p>
</noscript>
</body>
</html>
和httpwatch 返回的不一致啊,而且这个ticket=后面的每运行一次都不一样,请高手指点下啊,我就想要返回的内容和httpwatch返回的一样,怎么做。
|
|