笔者分析mr.baidu.com/xxx 这样的短网址链接后,抓包了一些百度参数后,得出如下方法,可以简单利用如下代码去生成调用方法,流程清晰可见,具体可以去百度开放接口平台去申请,也可以用一下代码调用。
GET http://www.app10086cn.com/?message
Host:xxx.baidu.com
Connection: keep-alive
Accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Referer: https://xueshu.baidu.com/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8
Cookie: PSTM=1520350376; BIDUPSID=34D66E7BDC7663DEFB4C1C3668208D48; BAIDUID=FCE6B5A2C1853CF7B97E09CD30F2C65F:FG=1; MCITY=-%3A; H_WISE_SIDS=148077_147669_148229_143879_150076_147087_150085_148194_148867_147680_148714_148435_147279_150166_148645_149540_149813_148439_148754_147889_146575_148524_127969_148794_149907_149329_149718_147352_146732_138426_149558_149761_131423_144658_148764_147527_147913_107311_149261_150571_148185_147715_149253_144966_149280_145607_148423_147547_146056_148868_110085; BDUSS=VvZnhVZzl0Mk9DR3lDZU5NMnRKNGZhWjM0VlNkRkNVZ0pRRVN6c2s4V3NjeU5mRVFBQUFBJCQAAAAAAAAAAAEAAAB-zfGTV2VpcWluaHVhODgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKzm-16s5vtebU; PSINO=2; ZD_ENTRY=baidu; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BAIDU_WISE_UID=wapp_1594047248870_641; BDRCVFR[w2jhEs_Zudc]=I67x6TjHwwYf0; delPer=0; BDSVRTM=31; BD_HOME=0; H_PS_PSSID=
post,php返回参数后:
uuidjsonpcb2020({"mid":"http://mr.baidu.com/xxxxx","m2":"21c988c3f5675f8236d77c868040464a9d4cbf772a7f", "info":""});