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/glossario/cabecalho_http/index.html | 79 +++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 files/pt-br/glossario/cabecalho_http/index.html (limited to 'files/pt-br/glossario/cabecalho_http/index.html') diff --git a/files/pt-br/glossario/cabecalho_http/index.html b/files/pt-br/glossario/cabecalho_http/index.html new file mode 100644 index 0000000000..24bbb51bb6 --- /dev/null +++ b/files/pt-br/glossario/cabecalho_http/index.html @@ -0,0 +1,79 @@ +--- +title: Cabeçalho HTTP +slug: Glossario/Cabecalho_HTTP +tags: + - Cabeçalho HTTP + - Glossary + - Glossário + - HTTP Header + - Mecânicas da Web + - WebMechanics +translation_of: Glossary/HTTP_header +--- +

Um Cabeçalho HTTP é um campo de uma requisição ou resposta HTTP que passa informações adicionais, alterando ou melhorando a precisão da semântica da mensagem ou do corpo. Cabeçalhos são case-insensitive, iniciam-se no começo da linha e são seguidos imediamente por um ':' e um valor dependendo do cabeçalho em si. O valor termina no próximo CRLF ou no fim da mensagem.

+ +

Tradicionalmente, cabeçalhos são classificados em categorias, apesar disso, essa classificação não faz mais parte de nenhuma especificação:

+ + + +

Uma requisição básica com um cabeçalho:

+ +
GET /example.http HTTP/1.1
+Host: example.com
+
+ +

Redirecionamentos possuem cabeçalhos mandatários ({{HTTPHeader("Location")}}):

+ +
302 Found
+Location: /NewPage.html
+
+ +

Um típicos conjunto de cabeçalhos:

+ +
304 Not Modified
+Access-Control-Allow-Origin: *
+Age: 2318192
+Cache-Control: public, max-age=315360000
+Connection: keep-alive
+Date: Mon, 18 Jul 2016 16:06:00 GMT
+Server: Apache
+Vary: Accept-Encoding
+Via: 1.1 3dc30c7222755f86e824b93feb8b5b8c.cloudfront.net (CloudFront)
+X-Amz-Cf-Id: TOl0FEm6uI4fgLdrKJx0Vao5hpkKGZULYN2TWD2gAWLtr7vlNjTvZw==
+X-Backend-Server: developer6.webapp.scl3.mozilla.com
+X-Cache: Hit from cloudfront
+X-Cache-Info: cached
+
+ + -- cgit v1.2.3-54-g00ecf