• Cookie和Set-Cookie


    https://www.cnblogs.com/yiyide266/p/7824816.html

    HTTP 请求报文通过Cookie字段通知服务端当前页面的域生效中的cookie; Cookie包含多个值

    GET /my/login.php HTTP/1.1
    Host: 192.168.88.207:91
    Connection: keep-alive
    Pragma: no-cache
    Cache-Control: no-cache
    Upgrade-Insecure-Requests: 1
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    Referer: http://192.168.88.207:91/my/p_login.php
    Accept-Encoding: gzip, deflate, sdch
    Accept-Language: zh-CN,zh;q=0.8
    Cookie: adp_16_index=0; adp_17_index=0; d18e8e09e49956787fd35cd64f931365=2017-10-27; adp_5_index=0; adp_6_index=0; adp_8_index=0; adp_9_index=0; 61ab7b0cdd217749ebb258da281080b8=2017-11-10; 
    

    HTTP响应报文通过Set-Cookie通知客户端需要保存如下cookie; 可以含多个Set-Cookie项

    HTTP/1.1 302 Found
    Date: Mon, 13 Nov 2017 00:46:23 GMT
    Server: Apache/2.2.22 (Win32) PHP/5.3.13
    X-Powered-By: PHP/5.3.13
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: CHNCOOKUID=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/my
    Set-Cookie: CHNCOOKSTA=Y; expires=Mon, 13-Nov-2017 00:46:22 GMT; path=/my
    Set-Cookie: PHPSESSID=ufhulbiv2oa0fcb1m06kfm7851; path=/
    Set-Cookie: _beta_view_id=2; expires=Tue, 14-Nov-2017 00:46:25 GMT; path=/
    Set-Cookie: CHNPOPUREG=yiyiyide%40163268.com; expires=Wed, 13-Dec-2017 00:46:25 GMT; path=/; domain=charmdate.com
    Set-Cookie: vpstat_c=4MA%3D%3D; expires=Tue, 14-Nov-2017 00:46:25 GMT; path=/
    Set-Cookie: vpstat_l=8QzEwMDAwMA%3D%3D; expires=Tue, 14-Nov-2017 00:46:25 GMT; path=/
    Set-Cookie: CHNCOOKUID=yiyiyide%40163268.com; expires=Wed, 14-Nov-2018 00:46:25 GMT; path=/
    Set-Cookie: CHNCOOKSTA=Y; expires=Wed, 14-Nov-2018 00:46:25 GMT; path=/
    Location: /my/overview.php
    Content-Length: 0
    Keep-Alive: timeout=5, max=96
    Connection: Keep-Alive
    Content-Type: text/html
  • 相关阅读:
    非post请求时整个url作为参数传递出现bug
    UML类图及类与类之间的关系
    MyBatis中if,where,set标签
    MySQL主从复制配置遇到的部分问题
    SpringMVC的各种参数绑定方式
    对解释器模式的认识
    大型网站技术架构案例分析
    淘宝网质量属性描述
    阅读架构漫谈笔记
    阅读计划——《软件需求十步走》06
  • 原文地址:https://www.cnblogs.com/brxHqs/p/11671968.html
Copyright © 2020-2023  润新知