http协议二
来源:互联网 发布:有java基础学python 编辑:程序博客网 时间:2024/05/16 04:46
<!--GET /TEST/HELLO.HTML HTTP/1.1--请求行(发送的get请求,请求的资源/TEST/HELLO.HTML)--消息头Accept: */*(表示客户端扣接收任何数据类型)Referer: http://localhost:80/test/abc.html(表示我是从哪里来的)Accept-Language: zh-cn(页面接收什么语言)User-Agent:Mozilla/4.0(告诉服务器我的浏览器版本)Accept-Encoding:gzip, deflate(表示接收什么样的数据压缩格式)Host:localhost:80(主机:80)Connection: Keep-Alive(表示不要立即断掉我们的请求)http响应Location:http://www.baidu.com/index.phpServer:apacheContent-Encoding:gzip (内容编码支持 gzip压缩算法)Content-Length:80 (返回数据大小)Content-Language:zh-cnContent-Type:text/html; charset=GB2312Last-Modified:Tue, 11 Jul 2000 18:23:51 GMT (表示浏览器请求的资源最新更新时间)Refresh:1; url=http://www.baidu.com(告诉浏览器间隔1秒,重定向到baidu)//下面两个是文件下载相关Content-Disposition:attachment,filename=aaa.zipTransfer-Encoding:chuukedSet-Cookie:SS=Q0=5Lb_nQ;path=/search(讲 Cookie)//下面三个共同控制不缓存Expires:-1Cache-Control:no-cachePragma:no-cache案例:<?php//通过header来禁用缓存(ajax)header("Expires:-1");header("Cache-Control:no_cache");header("Pragma:no-cache");echo 'hello! cache';?>-->
0 0
- http协议详解(二)
- http协议(二)
- http协议学习二
- HTTP协议--认证 (二)
- HTTP协议(二)
- HTTP网络协议(二)
- http协议二
- (二)HTTP协议
- http协议要点二
- HTTP协议(二)
- HTTP网络协议(二)
- HTTP协议 (二) URL
- HTTP协议(二)
- HTTP协议笔记(二):HTTP协议
- 超文本传输协议HTTP(二)
- 简析HTTP协议(二)
- 专题二:HTTP协议详解
- HTTP协议 (二) 基本认证
- IOS开发之OC学习笔记(中)
- Lucene 4.X 倒排索引原理与实现: (2) 倒排表的格式设计
- unity Game Center iOS 认证失败social.authenticate
- 【c++】字符串最后一个单词的长度
- 单例模式
- http协议二
- 什么才算是真正的编程能力?
- gnuplot画图二
- 欢迎使用CSDN-markdown编辑器
- Lucene 4.X 倒排索引原理与实现: (3) Term Dictionary和Index文件 (FST详细解析)
- Java流的操作使用
- 机器学习基础(一)——如何避免浮点数下溢
- Location Services and Maps Programming Guide 纪录
- java中currentTimeMillis()和Math.random()