aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/http/methods/get/index.md
blob: d3ecf1b1f43305347c8b29c4f5b6e549af78bf77 (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
---
title: GET
slug: Web/HTTP/Methods/GET
tags:
  - HTTP
  - Reference
  - Request method
translation_of: Web/HTTP/Methods/GET
original_slug: Web/HTTP/Méthode/GET
---
{{HTTPSidebar}}

La **méthode HTTP GET** demande une représentation de la ressource spécifiée. Les requêtes GET doivent uniquement être utilisées afin de récupérer des données.

<table class="properties">
  <tbody>
    <tr>
      <th scope="row">La requête a un corps</th>
      <td>Non</td>
    </tr>
    <tr>
      <th scope="row">Une réponse de succès a un corps</th>
      <td>Oui</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Safe","Sûre")}}</th>
      <td>Oui</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Idempotent","Idempotente")}}</th>
      <td>Oui</td>
    </tr>
    <tr>
      <th scope="row">
        {{Glossary("Cacheable","Peut être mise en cache")}}
      </th>
      <td>Oui</td>
    </tr>
    <tr>
      <th scope="row">Autorisée dans les formulaires HTML</th>
      <td>Oui</td>
    </tr>
  </tbody>
</table>

## Syntaxe

    GET /index.html

## Spécifications

| Spécification                            | Titre                                                         |
| ---------------------------------------- | ------------------------------------------------------------- |
| {{RFC("7231", "GET", "4.3.1")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |

## Compatibilité des navigateurs

{{Compat("http/methods", "GET")}}

## Voir aussi

- {{HTTPHeader("Range")}}