aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/http/methods/connect/index.html
blob: f7466de1b7b4a61b62399fc53c21c0d9a7bab22a (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
72
73
74
75
76
77
78
79
80
81
82
---
title: CONNECT
slug: Web/HTTP/Methods/CONNECT
translation_of: Web/HTTP/Methods/CONNECT
---
<div>{{HTTPSidebar}}</div>

<div>
<p>Die <strong>Methode HTTP <code>CONNECT</code></strong> startet die bidirektionale Kommunikation mit der angeforderten Ressource. Es kann verwendet werden, um einen Tunnel zu öffnen.</p>

<p>Beispielsweise kann die CONNECT-Methode verwendet werden, um auf Websites zuzugreifen, die {{Glossary("SSL")}} ({{Glossary("HTTPS")}}) verwenden. Der Client fordert einen HTTP-Proxy-Server auf, die TCP-Verbindung zum gewünschten Ziel zu tunneln. Der Server fährt dann fort, die Verbindung im Namen des Clients herzustellen. Sobald die Verbindung vom Server hergestellt wurde, fährt der Proxy-Server mit dem Proxy des TCP-Streams zum und vom Client fort.</p>
</div>

<p><code>CONNECT </code>ist eine Hop-by-Hop-Methode.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Request hat einen Inhalt</th>
   <td>Nein</td>
  </tr>
  <tr>
   <th scope="row">Erfolgreicher response hat einen Inhalt</th>
   <td>Ja</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Safe")}}</th>
   <td>Nein</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Idempotent")}}</th>
   <td>Nein</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Cacheable")}}</th>
   <td>Nein</td>
  </tr>
  <tr>
   <th scope="row">Erlaubt in <a href="/en-US/docs/Web/Guide/HTML/Forms">HTML forms</a></th>
   <td>Nein</td>
  </tr>
 </tbody>
</table>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox">CONNECT www.example.com:443 HTTP/1.1
</pre>

<h2 id="Beispiel">Beispiel</h2>

<p>Einige Proxy-Server benötigen möglicherweise die Berechtigung, um einen Tunnel zu erstellen. Siehe auch den Header {{HTTPHeader("Proxy-Authorization")}}.</p>

<pre class="line-numbers  language-html">CONNECT server.example.com:80 HTTP/1.1
Host: server.example.com:80
Proxy-Authorization: basic aGVsbG86d29ybGQ=</pre>

<h2 id="Spezifikationen">Spezifikationen</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7231", "CONNECT", "4.3.6")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2>

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

<h2 id="Siehe_auch">Siehe auch</h2>

<ul>
 <li>{{Glossary("Proxy server")}}</li>
 <li>{{HTTPHeader("Proxy-Authorization")}}</li>
</ul>