GET

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

HTTP GET 方法请求指定资源的表示。使用 GET 的请求应该只用于请求数据,而不应该包含数据。

备注:GET 请求中发送请求体或有效载荷可能会导致一些现有的实现拒绝该请求——虽然规范没有禁止,但语义没有定义。最好是避免在 GET 请求中发送有效载荷。

请求是否有主体
成功的响应是否有主体
安全
幂等
可缓存
允许在 HTML 表单中使用 允许

语法

http
GET /index.html

规范

Specification
HTTP Semantics
# GET

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
GET

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

参见