aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/methods/get/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/http/methods/get/index.html')
-rw-r--r--files/zh-cn/web/http/methods/get/index.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/methods/get/index.html b/files/zh-cn/web/http/methods/get/index.html
new file mode 100644
index 0000000000..5f59bd2423
--- /dev/null
+++ b/files/zh-cn/web/http/methods/get/index.html
@@ -0,0 +1,71 @@
+---
+title: GET
+slug: Web/HTTP/Methods/GET
+tags:
+ - HTTP
+ - 参考
+ - 请求方法
+translation_of: Web/HTTP/Methods/GET
+---
+<div>{{HTTPSidebar}}</div>
+
+<p><strong>HTTP<code> GET</code> 方法</strong>请求指定的资源。使用 <code>GET</code> 的请求应该只用于获取数据。</p>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">请求是否有主体</th>
+ <td>否</td>
+ </tr>
+ <tr>
+ <th scope="row">成功的响应是否有主体</th>
+ <td>是</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("安全")}}</th>
+ <td>是</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("幂等")}}</th>
+ <td>是</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("可缓存")}}</th>
+ <td>是</td>
+ </tr>
+ <tr>
+ <th scope="row">HTML 表单是否支持</th>
+ <td>是</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">GET /index.html
+</pre>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">标题</th>
+ </tr>
+ <tr>
+ <td>{{RFC("7231", "GET", "4.3.1")}}</td>
+ <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<p>{{Compat("http.methods.GET")}}</p>
+
+<h2 id="另见">另见</h2>
+
+<ul>
+ <li>{{HTTPHeader("Range")}}</li>
+</ul>