http相应头和请求头

1 篇文章 0 订阅

请求的细节

用于HTTP请求中的常用头

Accept: text/html,image/*       --支持数据类型

Accept-Charset: ISO-8859-1  --字符集

Accept-Encoding: gzip    --支持压缩

Accept-Language:zh-cn        --语言环境

Host: www.itcast.com:80     --访问主机

If-Modified-Since: Tue, 11 Jul 2000 18:23:51 GMT   --缓存时间

Referer: http://www.itcast.com/index.jsp  --来自哪个页面、防盗链

User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT5.0)

Cookie

Connection: close/Keep-Alive     --链接状态

Date: Tue, 11 Jul 2000 18:23:51 GMT --时间

 

响应细节

HTTP请求中的常用响应头

Location: http://www.it315.org/index.jsp   --跳转方向

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 --下载

Set-Cookie:SS=Q0=5Lb_nQ; path=/search

Expires: -1                 --缓存

Cache-Control: no-cache        --缓存

Pragma: no-cache                 --缓存

Connection: close/Keep-Alive            --连接

Date: Tue, 11 Jul 2000 18:23:51 GMT    --时间

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值