GET

HTTP GET method 方法請求展示指定資源。 使用 GET 的請求只應用於取得資料。

Request 有 body No
成功的 response 有 body Yes
Safe Yes
Idempotent Yes
Cacheable Yes
允許在 HTML 表單 Yes

格式

GET /index.html

規範

規範 標題
RFC 7231, section 4.3.1: GET Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

瀏覽器相容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
GETChrome Full support YesEdge Full support YesFirefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support

參見