Read a request
#A request has a method, target, headers and optionally a body. An empty line separates headers from the body.
Fragment
HTTP/1.1 requires Host. A fragment such as #details is not sent in the request target.
Reference
Decode requests, responses, browser rules and network diagnostics.
Wire examples use HTTP/1.1 notation; HTTP/2 and HTTP/3 encode it differently. Commands use a Unix-like shell and illustrative example.test hosts. Browser security behavior is labeled separately from HTTP and command-line clients.
A request has a method, target, headers and optionally a body. An empty line separates headers from the body.
Fragment
HTTP/1.1 requires Host. A fragment such as #details is not sent in the request target.
The status describes the result; headers describe metadata and handling. A response body can be absent even when a request succeeds.
Fragment
Scheme selects the protocol; authority includes host and optional port. Path, query and fragment have different roles.
Fragment
URL percent encoding, JSON string escaping and HTML escaping solve different problems. URLSearchParams encodes query values; do not concatenate raw user input into a URL.
Fragment
The source escape \n represents a newline; JSON.stringify then escapes that character for JSON.
An origin is scheme + host + port. Paths do not change it. Browser same-site cookie rules use a site notion based on scheme and registrable domain, which is different from origin.
Fragment