HTTP: The Requests and Replies That Make the Web Work
HTTP is the request-and-response language behind much of the web. Your browser asks for a page, an image, or an action, and a server sends back a result.
The letters stand for Hypertext Transfer Protocol. A protocol is a shared set of communication rules; hypertext is text that can link to other content, though HTTP carries much more than linked text.
One page can involve many requests
The browser is the client, the software making the request. A server is the software handling it and sending the response.
A page's first response may contain HTML, the markup that describes its structure. The browser can then request separate images, style instructions, and scripts—programs that add behavior to the page—as MDN's HTTP overview explains.
That's why the text may appear before a large image finishes loading. Each resource, the item being requested, can have its own request, response, and outcome.
What's inside the conversation
A request identifies what the client wants and includes a method, the action being requested. Here's a simplified HTTP/1.1 request for an imaginary site's menu:
GET /menu HTTP/1.1
Host: cafe.example
GET asks to retrieve the resource at /menu. Host names the site being requested, and HTTP/1.1 identifies the protocol version used in this readable example.
How a Web Page Gets to Your Screen
HTTP/2 and HTTP/3 pack messages differently on the connection but keep these core request-and-response meanings.
Other HTTP methods express different intentions: POST submits data for processing, PUT creates or replaces content at a specified address, and DELETE asks to remove a resource. The server still decides whether the request is allowed and can be fulfilled.
Headers are named fields carrying details about the message. For example, Content-Type: text/html says the content is an HTML document; other headers can describe acceptable formats or carry login credentials.
The body, when present, carries the content itself, such as submitted form data or a returned image. MDN's message guide separates this content from the fields describing it.
- Learn to find the flaws in a web app before someone else does.
- Understand injection, broken logins and logic bugs well enough to fix them.
- Build the skills that web security jobs ask for.
The response tells you how the request went
A response includes a three-digit status code. These common examples answer different questions:
| Code | Meaning |
|---|---|
200 OK | The request succeeded |
404 Not Found | The server didn't find the requested resource, or isn't willing to reveal it |
500 Internal Server Error | An unexpected server-side condition prevented completion |
The status-code reference also includes redirects, which point the client toward another location, and other outcomes. A 404 response doesn't mean your entire internet connection is broken: a server replied, but that request didn't produce the expected resource.
HTTP itself is stateless: it doesn't automatically remember earlier requests as one ongoing visit. Websites add that continuity through mechanisms such as cookies, small pieces of browser-held data that can be sent with later requests.
What the S in HTTPS adds
HTTPS carries HTTP communication through protection supplied by Transport Layer Security, or TLS. It encrypts the exchange, making the contents unreadable to someone merely watching the network, and checks for tampering in transit.
That protection matters for passwords, page contents, and other information moving between your browser and the site. Plain HTTP doesn't provide that protection by itself.
As MDN's TLS explanation describes, the connection also helps verify the server's identity. A protected connection still doesn't prove that a business is honest or that its page is free of harmful content.
HTTP tells the two sides how to ask and answer. HTTPS protects that conversation on its journey; you still need to decide whether the destination is one you intend to trust.
Headers: The Hidden Instructions Traveling With Your Data

Browser Cookies: What They Remember About You

Web Servers: What Happens After the Browser Asks

QUOTE:
"Amateurs hack systems, professionals hack people."
