HTTP GET 方法请求指定的资源。使用 GET 的请求应该只用于获取数据。
| 请求是否有主体 | 否 |
|---|---|
| 成功的响应是否有主体 | 是 |
| Safe | 是 |
| Idempotent | 是 |
| Cacheable | 是 |
| HTML 表单是否支持 | 是 |
语法
GET /index.html
规范
| 规范 | 标题 |
|---|---|
| RFC 7231, section 4.3.1: GET | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
浏览器兼容性
| Feature | Chrome | Firefox | Edge | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
| Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
|---|---|---|---|---|---|---|---|
| Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |