如何在jQuery中获取响应头?

时间:2012-02-16 06:21:35

标签: javascript jquery ajax

我收到了一个AJAX响应,我得到的价值如下:

Response Headers
Cache-Control   no-store, no-cache, max-age=0, must-revalidate
Connection  Keep-Alive
Content-Length  126
Content-Type    application/json; charset=UTF-8
Date    Thu, 16 Feb 2012 06:14:15 GMT
Keep-Alive  timeout=15, max=100
P3P CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Pragma  no-cache
Server  Apache
Request Headers
Accept  application/json, text/javascript, */*; q=0.01
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection  keep-alive
Content-Length  118
Content-Type    application/x-www-form-urlencoded; charset=UTF-8
**Cookie    iptac-001EC9F0DFCB-3M6V4H1="28556e61757468656e746963617465642931302e3234322e3139332e3634405f5f67756573745f7265616c6d5f5f--1329320166--3578--1329157412--40942643d3d44ad8efb18aeba8d32d1b"; CAKEPHP=vatq8kdqkoi2583lkg4netmd51**
Host    someurl
Referer someurl
User-Agent  Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
X-Requested-With    XMLHttpRequest

我想从上面获取Cookie值。我怎样才能使用jQuery来实现呢?

由于

0 个答案:

没有答案