HTTP is a protocol for transmitting hypermedia documents across the internet. It uses a client-server model where a web browser makes HTTP requests to a web server. The server then responds with the requested resources.
HTTP uses TCP/IP and the default port is 80. Requests have a method line specifying the request method (GET, POST, etc.), URL, and HTTP version. Responses have a status line with the HTTP version, status code, and reason phrase. Both include optional header lines and message body. Common methods are GET to retrieve a resource and POST to submit data to a server. Status codes indicate if a request was successful or encountered an error.