Skip to content
עברית

Guide

HTTP Protocol

HTTP defines request and response semantics: methods, fields, status codes and representation handling. HTTP/1.1, HTTP/2 and HTTP/3 differ in framing and transport behavior while sharing many semantics. Encryption is provided by TLS in HTTPS, rather than by an HTTP status code or method.

Meaning and purpose

HTTP defines request and response semantics: methods, fields, status codes and representation handling. HTTP/1.1, HTTP/2 and HTTP/3 differ in framing and transport behavior while sharing many semantics. Encryption is provided by TLS in HTTPS, rather than by an HTTP status code or method.

How it works in context

An origin interprets the method and target, authenticates and authorizes where needed, then sends a status and optional representation. Intermediaries may cache, redirect or forward requests. Cookies hold browser state under origin-related rules; sessions commonly associate a token with server-side state. HTTP/2 uses streams over TCP, while HTTP/3 uses QUIC.

Communication model

Client → DNS → Network → Service → Response

The components are roles, not a guarantee that each request follows one fixed path. Caches and proxies can answer at different stages.

Technical terms in this section

HTTP/1.0

HTTP/1.0 is an early HTTP version predating later persistence and caching refinements.

HTTP/1.1

HTTP/1.1 supports persistent connections with text-based message framing and defined body-length rules.

HTTP/2

HTTP/2 multiplexes framed streams over TCP while retaining HTTP semantics.

HTTP/3

HTTP/3 maps HTTP semantics onto QUIC streams rather than TCP-based HTTP/2 transport.

HTTP methods

HTTP methods define requested operations and associated safety and idempotency semantics.

GET

GET retrieves a representation and has safe semantics rather than intentional state-changing behavior.

POST

POST asks a resource to process supplied content according to application-defined semantics.

PUT

PUT creates or replaces target-resource state with idempotent method semantics.

PATCH

PATCH applies a partial modification using a supported patch format.

DELETE

DELETE requests removal of the target resource association, not guaranteed erasure of every stored copy.

HEAD

HEAD requests GET-like response metadata without a response body.

OPTIONS

OPTIONS describes communication options and is used in contexts such as CORS preflight.

HTTP status codes

HTTP status codes classify response outcomes and require interpretation in request and application context.

HTTP headers

HTTP fields carry metadata controlling representation, caching, authentication and intermediary behavior.

Cookies

Cookies store browser state and are sent on matching requests under scope and security rules.

Sessions

Application sessions associate requests with state or identity through a protected session identifier.

Authentication

Authentication verifies an identity claim, separately from permission to perform an action.

HTTP caching

HTTP caching controls reuse through freshness, validators and response-varying request context.

Content negotiation

Content negotiation selects representations using client preferences and server policy.

Compression

Compression reduces transfer size at processing cost and requires compatible encodings and security review.

Redirects

HTTP redirects identify alternate targets with status-specific method and client behavior.

WebSockets

WebSockets provide bidirectional messaging over an established connection with application-level authorization needs.

Server-Sent Events

Server-Sent Events stream server-to-client events over an HTTP connection.

REST APIs

REST is an architectural style involving resources and uniform interfaces, not any JSON HTTP endpoint.

GraphQL

GraphQL defines schema-based queries and execution for client-selected application data.

gRPC

gRPC provides contract-based remote procedure calls, commonly using Protocol Buffers and HTTP/2.

Operational checks and security

Inspect response fields and redirects, not only the final page. Cache-Control, Vary and authentication context affect caching safety. A successful TLS connection does not establish application authorization. Avoid placing secret tokens in URLs that may be logged or shared.

Read-only example

These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.

curl -I https://example.com
curl -sS -D - -o /dev/null https://example.com

Sources and further reading

These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.

Zaltzman.net · Your choice

Privacy preferences

Choose whether to link returning visits and remember display settings. Public content remains available without optional cookies.

Essential cookies

Always on

Secure forms, login sessions and your privacy choice.

What is included?

Session and CSRF protection, your privacy choice for up to 180 days, and Cloudflare security services. These do not authorise optional visitor analytics.

Analytics & returning visits

Store page history, visit times, IP and approximate location under one browser identifier, including return visits after an IP change.

How is this information used?

Authorised administrators use the history to understand usage and improve the site. No targeted ads, keystroke recording or fingerprinting. Turning this off deletes the history linked to your current identifier from the active database.

Remember display preferences

Save text size, contrast and other accessibility choices locally for your next visit.

Download my browser history

Turning analytics off deletes the current history and stops new collection.

Website operator: The Zaltzman Family
[email protected]

Zaltzman.net · Display settings

Accessibility tools

Adjust reading and navigation to suit you. Analytics consent is not required.

Text size
100%