An HTTP request is a message sent by a client to a server asking for data or instructing the server to perform an action. Each request includes a method (such as GET, POST, PUT, or DELETE), headers containing metadata, an optional body with payload data, and a target URL. Requests follow the rules of the HTTP protocol and are processed before generating a corresponding response.
Why it matters
Understanding HTTP requests is essential for debugging APIs, optimizing performance, and building reliable web applications. Every interaction between a browser and a server relies on correct request structure and handling.
Examples
A browser requesting /api/users or a form submitting data via POST. Lessons like How Browsers Send Requests explain request flow.