-
-
Save lize240810/52ddc8811049eb680bdcadbee868fc3f to your computer and use it in GitHub Desktop.
<GET>是HTTP的请求方式之一,HTTP/1.1协议中共定义了8种方法与服务器交互,有 GET、POST、HEAD、PUT、DELETE、OPTIONS、TRACE、CONNECT,其中比较常用的是<GET>和<POST>方法了。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **HEAD**:从服务器得到除了请求体与GET请求一样的响应 | |
| **GET**:通过URL获取查询资源信息(爬虫特定URL爬取) | |
| **POST**:提交表单(爬虫中的模拟登录) | |
| **PUT**:上传文件(浏览器不支持) | |
| **DELETE**:删除 | |
| **OPTIONS**:返回服务器对特定资源支持的HTTP请求方法 | |
| **TRACE**:返回服务器收到的请求,用于测试或诊断 | |
| **CONNECT**:预留给管道连接方式的代理服务 | |
|  |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment