-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
74 lines (58 loc) · 2.37 KB
/
index.md
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
---
title: CONNECT
slug: Web/HTTP/Methods/CONNECT
---
{{HTTPSidebar}}
**HTTP `CONNECT` method** запускает двустороннюю связь с запрошенным ресурсом. Метод можно использовать для открытия туннеля.
К примеру, метод CONNECT может использоваться для доступа к сайту, который использует {{Glossary("SSL")}} ({{Glossary("HTTPS")}}). Клиент запрашивает HTTP-прокси-сервер для туннелирования TCP-соединения с желаемым назначением. Затем сервер переходит к подключению от имени клиента. После того, как соединение установлено сервером, прокси-сервер продолжает проксировать поток TCP к клиенту и от него.
`CONNECT` is a hop-by-hop method.
<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">
Допускается в <a href="/ru/docs/Web/Guide/HTML/Forms">HTML формах</a>
</th>
<td>Нет</td>
</tr>
</tbody>
</table>
## Синтаксис
```
CONNECT www.example.com:443 HTTP/1.1
```
## Пример
Некоторые прокси сервера могут запросить авторизацию для создания туннеля. Смотрите также {{HTTPHeader("Proxy-Authorization")}}.
```http
CONNECT server.example.com:80 HTTP/1.1
Host: server.example.com:80
Proxy-Authorization: basic aGVsbG86d29ybGQ=
```
## Спецификации
{{Specifications}}
## Совместимость с браузерами
{{Compat}}
## Смотрите также
- {{Glossary("Proxy server")}}
- {{HTTPHeader("Proxy-Authorization")}}