Targets, origins & intermediaries
02A URI identifies the resource. Proxies and gateways may sit between the caller and its origin.
The client verifies the origin’s TLS certificate, then sends HTTPS through the tunnel.
Key idea: Route a request without losing the target authority.
Terms
- Client / user agent
- The app making a request; in this example, your browser.
- Origin server
- The server responsible for providing an answer for the target resource.
- Request
- A message asking for an action on a resource.
- Response
- The server’s message reporting the result of a request.
- Resource
- Something identified by a URI, such as the page at /story.
- Representation
- Content and descriptive information that convey a resource’s state, such as an HTML page.
- Semantics
- What a message or protocol element means, independently of how it travels.
- URI
- An identifier such as https://www.example.org/story.
- Origin
- The combination of scheme, host and port; different origins form different authority boundaries.
- Intermediary
- A participant between client and origin server, such as a proxy.
- Tunnel
- A connection through a proxy that forwards bytes without interpreting the messages inside.
- TLS
- Transport Layer Security: protects a connection and authenticates the server when properly checked.
Rules & examples
Route a request without losing the target authority.
- An origin is identified by its scheme, host, and port.
- Host or :authority conveys authority information; routing must honor the target URI.
- HTTPS requires an authenticated secure connection and certificate identity checks.
This example uses a blind forward-proxy tunnel. It cannot edit the encrypted HTTP request. A TLS-terminating gateway is a different topology. HTTP participants remove connection-specific options before forwarding messages they can read.
Predict: If a proxy blindly forwards an HTTPS tunnel, can it edit the HTTP headers inside?
Check your answer
No. The illustrated tunnel forwards protected bytes. A gateway that terminates TLS is a different arrangement.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.