这是我的页面头部

json 登陆协议分析

登录方式有两种:1)用户名密码登陆,code 为 5401 (2) IMSI和TOKEN 登陆, code 为93

 

POST /tcpbus/mobile HTTP/1.1
Host: clientaccess.10086.cn:9043
Accept: */*
Accept-Encoding: gzip
Code: 5401
Content-Type: text/xml;charset=utf-8
User-agent: GreenPoint.Inc
Connection: close
Content-Length: 415

<ROOT>
<MB_TYPE>0</MB_TYPE>
<IMEI>359876051293900</IMEI>
<IMSI>4600045****5694</IMSI>
<SYS_TYPE>1</SYS_TYPE>
<SYS_VER>4.2.2</SYS_VER>
<CLIENT_VER>1.9.1</CLIENT_VER>
<NET_TYPE>1</NET_TYPE>
<SCN_TYPE>4</SCN_TYPE>
<TEL_NO>151****5005</TEL_NO>
<LOC_CITY>0351</LOC_CITY>
<LOC_PROVINCE>351</LOC_PROVINCE>
<PS>******</PS> 
<EB>1</EB>
<DISTINGUISH>com.greenpoint.android.mc10086.activity</DISTINGUISH>
</ROOT>

CODE 5401 使用用户名密码登陆,使用291也可以

TEL_NO 用户号码

PS 密码

 应答会 set jsession_cookies

 

POST /tcpbus/mobile HTTP/1.1
Host: clientaccess.10086.cn:9043
Accept: */*
Accept-Encoding: gzip
Code: 93
Content-Type: text/xml;charset=utf-8
User-agent: GreenPoint.Inc
Connection: close
Content-Length: 197

<ROOT>
<EB>0</EB>
<CLV>1.9.1</CLV>
<SYTP>1</SYTP>
<IMEI>3598760****3918</IMEI>
<IMSI>4600045****9693</IMSI>
<TOKEN>5nrJwRX6JxlgTROG********b5cNflqNrIj0eUCYS3cL5HvYkY********** lZSc</TOKEN>
</ROOT>

应答:

Set-Cookie: LOGINTOKEN=17ee32d1fe9a3f4756a22f4a863ba0d0; Secure 

logintoken 的值是手机号码的md5值

TOKEN 字段的值来自 Code: 92

POST /tcpbus/mobile HTTP/1.1
Host: clientaccess.10086.cn:9043
Accept: */*
Accept-Encoding: gzip
Code: 92
Content-Type: text/xml;charset=utf-8
User-agent: GreenPoint.Inc
Connection: close
Content-Length: 116

<ROOT>
<EB>0</EB>
<CLV>1.9.1</CLV>
<SYTP>1</SYTP>
<IMEI>359876*****3918</IMEI>
<IMSI>4600045****9693</IMSI>
</ROOT>

应答

HTTP/1.1 200 OK
X-Powered-By: Servlet/3.0
Content-Type: text/html;charset=UTF-8
RspCode: 0
Content-Language: zh-CN
Date: Fri, 10 Oct 2014 14:26:17 GMT
Connection: close
Via: 1.1 ID-0001242736524550 uproxy-2
Content-Length: 93

<ROOT><TOKEN>5nrJwRX6JxlgTROGeJ72uEd6b5cNflqNrIj0eUCYS3cL5HvYkYgXvo0zSzLM lZSc</TOKEN></ROOT>

 

 

其它的 code:

归属地:85

余额:701

 

posted @ 2014-10-10 21:10  范晨鹏  阅读(1344)  评论(0编辑  收藏  举报