aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/http/methods/trace/index.md
blob: a11f0d8d26788c51c1ce873136bd730f8b8a7778 (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: TRACE
slug: Web/HTTP/Methods/TRACE
tags:
  - HTTP
  - Reference
  - requête
translation_of: Web/HTTP/Methods/TRACE
original_slug: Web/HTTP/Méthode/TRACE
---
{{HTTPSidebar}}

La **méthode HTTP `TRACE`** effectue un test de rebouclage des messages le long du chemin vers la ressource cible, fournissant ainsi un mécanisme de débogage utile.

Le destinataire final de la demande doit renvoyer au client le message reçu, à l'exclusion de certains champs décrits ci-dessous, en tant que corps de message d'une réponse {{HTTPStatus("200")}}. (OK) avec un {{HTTPHeader("Content-Type")}} de `message/http`. Le destinataire final est soit le serveur d'origine, soit le premier serveur à recevoir une valeur {{HTTPHeader("Max-Forwards")}} de 0 dans la requête.

<table class="properties">
  <tbody>
    <tr>
      <th scope="row">La demande a un corps</th>
      <td>Non</td>
    </tr>
    <tr>
      <th scope="row">Une réponse réussie a un corps</th>
      <td>Non</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Safe")}}</th>
      <td>Oui</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Idempotent")}}</th>
      <td>Oui</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Cacheable")}}</th>
      <td>Non</td>
    </tr>
    <tr>
      <th scope="row">Autorisé dans les formulaires HTML</th>
      <td>Non</td>
    </tr>
  </tbody>
</table>

## Syntaxe

    TRACE /index.html

## Specifications

| Specification                                | Title                                                         |
| -------------------------------------------- | ------------------------------------------------------------- |
| {{RFC("7231", "TRACE", "4.3.8")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |

## Compatibilité des navigateurs

{{Compat("http.methods.TRACE")}}

## Voir également

- [Méthodes HTTP](/fr/docs/Web/HTTP/Méthode)