|
本帖最后由 哟哟 于 2013-5-23 08:15 编辑
希望各位指点下,谢谢了!- import inet.http
- import console
- http = inet.http()
- var html = http.get("http://211.94.187.236/zhcx/zhcxAction!list.dhtml?op=cx&keyType=reg_no&keyValue=110108015751885")
- console.log(string.fromto(html))
复制代码 这样访问,提示访问异常。。。
是否需要自己写入http头
抓包信息如下:
Request URL:http://211.94.187.236/zhcx/zhcxA ... lue=110108015751885
Request Method:GET
Status Code:200 OK
Request Headers
GET /zhcx/zhcxAction!list.dhtml?op=cx&keyType=reg_no&keyValue=110108015751885 HTTP/1.1
Host: 211.94.187.236
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3
Cookie: BIGipServerPool_xy=219523264.16671.0000; wdcid=070ca4c3d96cbd04; JSESSIONID=MsBnRbDfjZVhySQwskjHq039gZ6pQ04SMzvFQTGqzJvR8Dyvp7Xn!-708564166; wdlast=1369146666
Query String Parametersview parsed
op=cx&keyType=reg_no&keyValue=110108015751885
Response Headers
HTTP/1.1 200 OK
Cache-Control: no-cache="set-cookie"
Date: Tue, 21 May 2013 14:45:49 GMT
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Set-Cookie: JSESSIONID=TyGyRbLdcGL2cxgqnT4yWYhCsLCcYXpRCQhGFG6X9pJmnlfjRZqZ!-576207239; path=/
X-Powered-By: Servlet/2.4 JSP/2.0 |
|