zoukankan      html  css  js  c++  java
  • Http常见的响应头

    Location: http://www.it315.org/index.jsp   -表示重定向的地址,该头和302的状态码一起使用。

    Server:apache tomcat                 ---表示服务器的类型

    Content-Encoding: gzip                 -- 表示服务器发送给浏览器的数据压缩类型

    Content-Length: 80                    --表示服务器发送给浏览器的数据长度

    Content-Language: zh-cn               --表示服务器支持的语言

    Content-Type: text/html; charset=GB2312   --表示服务器发送给浏览器的数据类型及内容编码

    Last-Modified: Tue, 11 Jul 2000 18:23:51 GMT  --表示服务器资源的最后修改时间

    Refresh: 1;url=http://www.it315.org     --表示定时刷新

    Content-Disposition: attachment; filename=aaa.zip --表示告诉浏览器以下载方式打开资源(下载文件时用到)

    Transfer-Encoding: chunked

    Set-Cookie:SS=Q0=5Lb_nQ; path=/search   --表示服务器发送给浏览器的cookie信息(会话管理用到)

    Expires: -1                           --表示通知浏览器不进行缓存

    Cache-Control: no-cache

    Pragma: no-cache

    Connection: close/Keep-Alive           --表示服务器和浏览器的连接状态。close:关闭连接 keep-alive:保存连接

  • 相关阅读:
    D
    洛谷P2002 消息扩散
    洛谷P5058 [ZJOI2004]嗅探器
    洛谷P2746 校园网Network of Schools
    洛谷P3388 【模板】割点(割顶)
    洛谷P1407 [国家集训队]稳定婚姻
    2018年12月18日
    洛谷P1547 Out of Hay
    洛谷P4018 Roy&October之取石子
    洛谷P1318 积水面积
  • 原文地址:https://www.cnblogs.com/loaderman/p/9994057.html
Copyright © 2011-2022 走看看