HTTP协议常见的响应
2012-11-15 17:43
176 查看
理论基础:
HTTP 协议是超文本传输协议的简称,主要内容定义在RFC2616。
HTTP协议由来自客户端(浏览器)的请求和来自服务端(web服务器)的响应组成。
HTTP请求的方法有:
HTTP协议常见的响应:
实验部分:
使用telnet做HTTP协议交互演示.
HTTP 协议是超文本传输协议的简称,主要内容定义在RFC2616。
HTTP协议由来自客户端(浏览器)的请求和来自服务端(web服务器)的响应组成。
HTTP请求的方法有:
Method = "OPTIONS" ; Section 9.2 | "GET" ; Section 9.3 | "HEAD" ; Section 9.4 | "POST" ; Section 9.5 | "PUT" ; Section 9.6 | "DELETE" ; Section 9.7 | "TRACE" ; Section 9.8 | "CONNECT" ; Section 9.9 | extension-method extension-method = token其中GET POST HEAD是最常用的,其他的不经常用。
HTTP协议常见的响应:
Status-Code = "100" ; Section 10.1.1: Continue | "101" ; Section 10.1.2: Switching Protocols | "200" ; Section 10.2.1: OK | "201" ; Section 10.2.2: Created | "202" ; Section 10.2.3: Accepted | "203" ; Section 10.2.4: Non-Authoritative Information | "204" ; Section 10.2.5: No Content | "205" ; Section 10.2.6: Reset Content | "206" ; Section 10.2.7: Partial Content | "300" ; Section 10.3.1: Multiple Choices | "301" ; Section 10.3.2: Moved Permanently | "302" ; Section 10.3.3: Found | "303" ; Section 10.3.4: See Other | "304" ; Section 10.3.5: Not Modified | "305" ; Section 10.3.6: Use Proxy | "307" ; Section 10.3.8: Temporary Redirect | "400" ; Section 10.4.1: Bad Request | "401" ; Section 10.4.2: Unauthorized | "402" ; Section 10.4.3: Payment Required | "403" ; Section 10.4.4: Forbidden | "404" ; Section 10.4.5: Not Found | "405" ; Section 10.4.6: Method Not Allowed | "406" ; Section 10.4.7: Not Acceptable | "407" ; Section 10.4.8: Proxy Authentication Required | "408" ; Section 10.4.9: Request Time-out | "409" ; Section 10.4.10: Conflict | "410" ; Section 10.4.11: Gone | "411" ; Section 10.4.12: Length Required | "412" ; Section 10.4.13: Precondition Failed | "413" ; Section 10.4.14: Request Entity Too Large | "414" ; Section 10.4.15: Request-URI Too Large | "415" ; Section 10.4.16: Unsupported Media Type | "416" ; Section 10.4.17: Requested range not satisfiable | "417" ; Section 10.4.18: Expectation Failed | "500" ; Section 10.5.1: Internal Server Error | "501" ; Section 10.5.2: Not Implemented | "502" ; Section 10.5.3: Bad Gateway | "503" ; Section 10.5.4: Service Unavailable | "504" ; Section 10.5.5: Gateway Time-out | "505" ; Section 10.5.6: HTTP Version not supported | extension-code
实验部分:
使用telnet做HTTP协议交互演示.
相关文章推荐
- HTTP协议—常见的HTTP响应状态码解析
- HTTP协议学习总结三(常见http响应头)
- HTTP协议-通过FIREFOX火狐调试工具观察HTTP常见响应代码
- day29 Servlet Http协议四个阶段 Servlet的编程步骤 WEB应用程序常见错误
- 老李分享:HTTP协议之请求和响应
- http常见响应码
- 常见通信协议HTTP、TCP、UDP的简单介绍
- HTTP协议(二)响应状态码
- http协议2:请求、响应、缓存
- 日常开发中常见的HTTP协议的状态码
- Http协议基础之HTTP响应首部字段
- 【网络】常见通信协议HTTP、TCP、UDP的简单介绍
- http协议: 请求响应举例
- HTTP协议之响应头Date与Age
- http协议 - 浅谈ETag http响应Last-Modified和ETag
- 了解HTTP Header之User-Agent和HTTP协议的响应码
- HTTP协议中POST、GET、HEAD、PUT等请求方法以及一些常见错误
- tomcat服务器与Http协议之请求(get请求、post请求)和响应
- 常见 HTTP 响应状态码
- Tomcat服务器与Http协议之请求(get请求、post请求)和响应