HTTP Flashcards
What default port that HTTP use?
TCP port 80
What default port does HTTPS use?
Port 443
What is an HTTP request?
It is the way Internet communications platforms such as web browsers ask for the information they need to load a website.
What does a typical HTTP request contain?
- HTTP version type
- a URL
- An HTTP method
- HTTP request headers
- Optional HTTP body.
What is an HTTP method?
An HTTP method, sometimes referred to as an HTTP verb, indicates the action that the HTTP request expects from the queried server.
What are HTTP request headers?
HTTP headers contain text information stored in key-value pairs, and they are included in every HTTP request and response. These headers communicate core information, such as what browser the client is using and what data is being requested.
What is in an HTTP request body?
The body of a request is the part that contains the ‘body’ of information the request is transferring. The body of an HTTP request contains any information being submitted to the web server, such as a username and password, or any other data entered into a form.
What is in an HTTP response?
An HTTP response is what web clients (often browsers) receive from an Internet server in answer to an HTTP request. These responses communicate valuable information based on what was asked for in the HTTP request.
What does an HTTP response contain?
- an HTTP status code
- HTTP response headers
- optional HTTP body
What’s an HTTP status code?
HTTP status codes are 3-digit codes most often used to indicate whether an HTTP request has been successfully completed.
Status codes are broken into 5 blocks, what are they?
- 1xx - Informational
- 2xx - Success
- 3xx - Redirection
- 4xx - Client Error
- 5xx - Server Error
What are HTTP response headers?
an HTTP response comes with headers that convey important information such as the language and format of the data being sent in the response body.