aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/http/methods/get/index.html
blob: 654d4a3d3db1a4fe32e2abe34e2ed5de026afbe7 (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
---
title: GET
slug: Web/HTTP/Methods/GET
translation_of: Web/HTTP/Methods/GET
---
<div>{{HTTPSidebar}}</div>

<p><strong>HTTP <code>GET</code> method</strong> 方法請求展示指定資源。 使用 <code>GET</code> 的請求只應用於取得資料。</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Request 有 body</th>
   <td>No</td>
  </tr>
  <tr>
   <th scope="row">成功的 response 有 body</th>
   <td>Yes</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Safe")}}</th>
   <td>Yes</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Idempotent")}}</th>
   <td>Yes</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Cacheable")}}</th>
   <td>Yes</td>
  </tr>
  <tr>
   <th scope="row">允許在 HTML 表單</th>
   <td>Yes</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 class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>

<p>{{Compat("http.methods.GET")}}</p>

<h2 id="參見">參見</h2>

<ul>
 <li>{{HTTPHeader("Range")}}</li>
</ul>