Chào các bạn,
Mình đang muốn lấy giá trị Set-Cookies (mình tô đỏ bên dưới) mà Respones trả về khi mình gửi Request nhưng không được, bạn nào biết thì chỉ giúp mình với :cry:
----------------------------------------------------------
http://www.******************/login/login
POST /login/login HTTP/1.1
Host: www.******************
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://www.******************/
Cookie: __utma=246362001.197460688.1400072165.1400082251.1 400158384.3; __utmz=246362001.1400072165.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(none); __utmb=246362001.11.10.1400158384; __utmc=246362001; pnpopup=popactive; xf_session=296ae56e95d4cb728f34df873ff23915
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 82
login=hoangseo®ister=0&password=123456789&cooki e_check=1&redirect=%2F&_xfToken=
HTTP/1.1 303 See Other
Server: nginx
Date: Thu, 15 May 2014 12:52:13 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private, max-age=0
Set-Cookie: xf_session=3077a666b71392550cf743fdd05e1029; path=/; httponly
X-Frame-Options: SAMEORIGIN
Last-Modified: Thu, 15 May 2014 12:52:13 GMT
Location: http://www.******************/
----------------------------------------------------------
Mình đang muốn lấy giá trị Set-Cookies (mình tô đỏ bên dưới) mà Respones trả về khi mình gửi Request nhưng không được, bạn nào biết thì chỉ giúp mình với :cry:
----------------------------------------------------------
http://www.******************/login/login
POST /login/login HTTP/1.1
Host: www.******************
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://www.******************/
Cookie: __utma=246362001.197460688.1400072165.1400082251.1 400158384.3; __utmz=246362001.1400072165.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(none); __utmb=246362001.11.10.1400158384; __utmc=246362001; pnpopup=popactive; xf_session=296ae56e95d4cb728f34df873ff23915
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 82
login=hoangseo®ister=0&password=123456789&cooki e_check=1&redirect=%2F&_xfToken=
HTTP/1.1 303 See Other
Server: nginx
Date: Thu, 15 May 2014 12:52:13 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private, max-age=0
Set-Cookie: xf_session=3077a666b71392550cf743fdd05e1029; path=/; httponly
X-Frame-Options: SAMEORIGIN
Last-Modified: Thu, 15 May 2014 12:52:13 GMT
Location: http://www.******************/
----------------------------------------------------------
Comment