aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/methods/get/index.html
blob: 5f59bd24231ae38c06a59a0d00446c7858844f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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>