Logótipo oficial do MASTR MASTR Apoiar o trabalho
Índice
← Início da wiki

Fundamentos da Web

HTTP: what your browser asks a server to do

Requests, responses and application state explain why a working page can still show stale or misleading information.

Web2 foundation · 1 min read

Os artigos de investigação e as referências são publicados em inglês. A navegação está disponível em sete idiomas.

Neste artigo
  1. The request and the response
  2. State exists above the protocol
  3. Fontes e originais

The request and the response

HTTP defines messages exchanged between a client and a server. A request identifies a resource and an operation; the response supplies a status, headers and usually a body. A browser typically makes several requests to assemble one page, including its styles, scripts and images.

A successful HTTP response means the server delivered a response under the protocol. It does not establish that a displayed token price is current, that a claim is true or that an operation settled onchain. Those are application and evidence questions.

State exists above the protocol

HTTP is stateless, but an application can recognise later requests through cookies and other identifiers. Proxies and caches may sit between the browser and the origin server. A stale script and a fresh page can therefore coexist during a broken deployment.

For research, keep the requested URL, response time and relevant headers with the content. An error page, a cached result and an authenticated account response are different observations. Follow cookies and frontend dependencies to see how an ordinary web service sits around a blockchain application.

Fontes e originais

Leituras relacionadas

MASTR

Apoiar a investigação independente

As investigações, as provas originais e os guias são de acesso livre. Os donativos voluntários ajudam a financiar a investigação e a manter disponíveis as ferramentas MASTR.

Abrir carteira