From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/http/headers/host/index.html | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 files/pt-br/web/http/headers/host/index.html (limited to 'files/pt-br/web/http/headers/host/index.html') diff --git a/files/pt-br/web/http/headers/host/index.html b/files/pt-br/web/http/headers/host/index.html new file mode 100644 index 0000000000..de12664090 --- /dev/null +++ b/files/pt-br/web/http/headers/host/index.html @@ -0,0 +1,72 @@ +--- +title: Host +slug: Web/HTTP/Headers/Host +translation_of: Web/HTTP/Headers/Host +--- +
{{HTTPSidebar}}
+ +
 
+ +

O cabeçalho de solicitação de Host especifica o nome de domínio do servidor (para hospedagem virtual), e (opcionalmente) o número da porta TCP no qual o servidor está escutando.

+ +

Se nenhuma porta for fornecida a porta padrão para o serviço solicitado (por exemplo, "80" para um HTTP URL) está implícita.

+ +

Um campo de cabeçalho de Host deve ser enviado em todas as mensagens desolicitação HTTP / 1. 1. Um código de status {{HTTPStatus("400")}} (Bad Request) será enviado para qualquer mensagem de solicitação HTTP/1.1 que não contenha um campo de cabeçalho do host ou contenha mais de um.

+ + + + + + + + + + + + +
Header type{{Glossary("Request header")}}
{{Glossary("Forbidden header name")}}yes
+ +

Syntax

+ +
Host: <host>:<port>
+
+ +

Directives

+ +
+
<host>
+
the domain name of the server (for virtual hosting).
+
<port> {{optional_inline}}
+
TCP port number on which the server is listening.
+
+ +

Examples

+ +
Host: developer.cdn.mozilla.net
+ +

Specifications

+ + + + + + + + + + + + +
SpecificationTitle
{{RFC("7230", "Host", "5.4")}}Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing
+ +

Browser compatibility

+ + + +

{{Compat("http.headers.Host")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf