HTTP
来源:互联网 发布:淘宝上好的家具店 编辑:程序博客网 时间:2024/06/07 18:35
0x00 HTTP Method Definitions
HTTP请求方法在1.1中定义如下,具体可以查看协议,go
0x01 OPTIONS
The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI
OPTIONS方法用于获取指定URI请求或响应通信链上的有关通信选项信息。
0x02 GET
The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI
GET方法用于检索或获取服务器上的指定的资源。
0x03 HEAD
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
HEAD方法和GET方法的区别在于,请求的响应中不保护消息体,只返回请求响应头。
0x04 POST
The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.
POST方法用于请求源服务器接收到的请求实体中URL指定资源标识的下一级资源。
相当于请求一个更具体的数据,比如说,你的URI代表了资源的一个集合,POST就会根据请求体中的数据去取这个集合中的数据/部分数据。
0x05 PUT
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
PUT方法用于通过指定的URI去存储请求中携带的数据
0X06 DELETE
The DELETE method requests that the origin server delete the resource identified by the Request-URI.
DELETE方法用于删除服务器指定URI的资源。
0x07 TRACR
The TRACE method is used to invoke a remote, application-layer loop- back of the request message.
TRACE方法用于诊断指定的URI请求原始报文是否被修改,或损坏。
0x08 CONNECT
CONNECT方法是用于保留与可动态切换为隧道的代理一起使用的链接。
另附上一篇解释比较好的文章,传送门
- http
- http
- HTTP
- HTTP
- HTTP
- http
- HTTP
- HTTP
- HTTP
- http
- http
- http
- http
- HTTP
- HTTP
- http
- HTTP
- http
- [Leetcode] 105, 106, 96
- 久违的总结
- python3.5安装BeautifulSoup
- mysqldump备份与还原
- JavaScript事件详解
- HTTP
- svm的c++代码编写,二维数据的硬间隔分类
- 匿名函数和Lambda表达式的写法
- 字符串转换成整数——从源码学习
- NYOJ 16 矩形嵌套
- JAVA 中sleep和wait()方法区别
- 分类算法之决策树ID3详解
- leetcode__02
- 字符与字节的关系。