1. 程式人生 > >HTTP請求與響應示例

HTTP請求與響應示例

使用了MAC版的Charles進行了HTTP的抓取
軟體下載連結:http://download.csdn.net/download/kikitious_du/9988987

軟體截圖:



請求:

GET /public/api/getUserStructList?callback=jQuery1111047096868593587415_1505989838600&_=1505989838601 HTTP/1.1
Host: lib.csdn.net
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36
Accept: */*
Referer: http://blog.csdn.net/kikitious_du
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: uuid_tt_dd=4274671500526634582_20170913; UserName=Kikitious_Du; UserInfo=Jq6xMl44%2FSHM%2BuVt8BPFPCu8cm8xAkaDNP4regg7t%2BZqkwYzjbt5t9BkSXpBGHFUld%2F5gPmoZphm6GQ6%2FyKxGro%2FLdMAInz%2F8LLVB7LCR5XqmOL4xM7jRzTgO4PJ0meaw9NJpLxc2XR8jet%2FLsYK2A%3D%3D; UserNick=Signal_Du; AU=CA5; UD=%E6%84%BF%E6%88%91%E4%BB%AC%E5%9C%A8%E5%BD%BC%E6%AD%A4%E7%9C%8B%E4%B8%8D%E5%88%B0%E7%9A%84%E5%B2%81%E6%9C%88%E9%87%8C%EF%BC%8C%E7%86%A0%E7%86%A0%E7%94%9F%E8%BE%89%E3%80%82; UN=Kikitious_Du; UE="
[email protected]
"; BT=1505897177014; access-token=3af786f6-d94a-40bd-a1d5-85bfa36eb400; __message_district_code=110000; connect.sid=s%3ADoDp7_iwo5tyFnXsRfLKBUmFUICYEB_D.9eeqMsGv%2BhTZEDAtJBXPbMQ08qbs9QmINiSSsiniTA4; __message_sys_msg_id=0; __message_gu_msg_id=0; __message_cnel_msg_id=0; __message_in_school=0; dc_tos=owml3c; Hm_lvt_6bcd52f51e9b3dce32bec4a3997715ac=1505973188,1505973475,1505981870,1505989839; Hm_lpvt_6bcd52f51e9b3dce32bec4a3997715ac=1505989839
響應:
HTTP/1.1 200 OK
Server: openresty
Date: Thu, 21 Sep 2017 10:30:40 GMT
Content-Type: text/javascript; charset=utf-8
Content-Length: 148
Connection: keep-alive
Keep-Alive: timeout=20
X-Powered-By: Express
X-Content-Type-Options: nosniff
ETag: W/"94-a1345f09"

/**/ typeof jQuery1111047096868593587415_1505989838600 === 'function' && jQuery1111047096868593587415_1505989838600({"err":0,"msg":"ok","data":[]});