http请求消息头和相应消息头
来源:互联网 发布:海思监控客户端软件 编辑:程序博客网 时间:2024/05/21 17:06
http请求消息头:
- Accept: text/html,image/* [告诉服务器,我可以接受 文本,网页,图片]
- Accept-Charset: ISO-8859-1 [接受字符编码 iso-8859-1]
- Accept-Encoding: gzip,compress [可以接受 gzip,compress压缩后数据.].
- Accept-Language: en-us,zh-cn [浏览器支持中,英文]
- Host: www.sohu.com:80 [我要找主机是 www.sohu.com:80]
- If-Modified-Since: Tue, 11 Jul 2000 18:23:51 GMT [ 告诉服务器,我的缓冲中有这个资源文件,该文件的时间是 。。。]
- Referer: http://www.sohu.com/index.jsp [告诉服务器,我来自哪里,该消息头,常用于防止盗链]
- User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)[告诉服务器,浏览器内核]
- Connection: close/Keep-Alive [保持连接,发完数据后,我不关闭连接]
- Date: Tue, 11 Jul 2000 18:23:51 GMT [浏览器发送该http请求的时间]
http响应消息头:
1.Location: http://www.baidu.org/index.jsp 【让浏览器重新定位到url】
2. Server:apache tomcat 【告诉浏览器我是tomcat】
3. Content-Encoding: gzip 【告诉浏览器我使用 gzip】
4. Content-Length: 80 【告诉浏览器会送的数据大小80节】
5. Content-Language: zh-cn 【支持中文】
6. Content-Type: text/html; charset=GB2312 [内容格式text/html; 编码gab2312]
7. Last-Modified: Tue, 11 Jul 2000 18:23:51 GMT 【告诉浏览器,该资源上次更新时间】
8. Refresh: 1;url=http://www.baidu.com 【过多久去,刷新到 http://www.baidu.com】
9. Content-Disposition: attachment; filename=aaa.zip 【告诉浏览器,有文件下载】
10. Transfer-Encoding: chunked 【传输的编码]】
11. Expires: -1【告诉浏览器如何缓存页面IE】
12. Cache-Control: no-cache 【告诉浏览器如何缓存页面火狐】
13. Pragma: no-cache 【告诉浏览器如何缓存页面】
14. Connection: close/Keep-Alive 【保持连接 1.1是Keep-Alive】
15. Date: Tue, 11 Jul 2000 18:23:51 GMT
- http请求消息头和相应消息头
- http请求消息头
- http相应头和请求头
- Http 请求头 和 相应头
- Servlet___详解HTTP相应消息头
- http请求消息头与响应消息头
- day06 web和http:Tomcat的认识,了解请求消息头和响应消息头
- Servlet___详解HTTP请求消息头
- HTTP请求头和相应头的详细介绍
- HTTP请求头和相应头的详细介绍
- HTTP请求头和相应头的详细介绍
- 请求消息头获取
- HTTP请求头,相应头详解
- 理解HTTP消息头
- HTTP常用消息头
- 初识HTTP消息头
- 理解http消息头
- 理解HTTP消息头
- Object
- ZOJ Problem Set
- python获得当前时间并以特定形式输出
- 详解Bootstrap中JS插件实现下拉菜单效果
- 军事理论课答案(中国国防史)
- http请求消息头和相应消息头
- Java并发编程札记-(三)JUC原子类-02原子方式更新单个变量
- Anti-SG游戏 与 SJ定理笔记
- Linux下不带缓存的I/O操作(复习)
- mt2503[AT Command]CPBR 读取电话本少 "+"号
- 动态存储和静态存储区域区别
- python
- No rule to make target `out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp
- Roman Numeral Converter