HTTP Flashcards
What is HTTP( HyperText Transfer Protocol)?
A networking protocol that runs over TCP/IP and governs communication between web browsers and web servers
What is TCP/IP?
A protocol suite that governs how data packets are transferred over the internet from one machine to another
What is a DNS lookup?
Sending the domain name to the local DNS and getting back the IP address of the web server hosting the domain name.
When is a DNS lookup performed?
Before HTTP communication begins.
What is an HTTP request?
A message sent from the web browser to the web server.
What is an HTTP response?
A message sent from the web server back to the web browser in response to an HTTP request.
What are HTTP response/requests composed of?
- Start Line
- Header Field
- Blank Line
- Message Body
What is contained in an HTTP request / response start line?
specifies the HTTP version being used.
- A request’s start line includes a request type and path
- A response’s start line includes a status code and phrase.
What is contained in an HTTP request Header Field?
- Hostname
- Browser Identifier
What is contained in an HTTP response Header Field?
- # of Bytes in message Body
- Media type of message body
- Datetime of response
- Datetime resource was last modified
- Web Server software identifier
What is contained in an HTTP request / response Message Body?
Contains data being transferred between a web browser and web server.
- In a request, the message body may be empty or contain submitted form data.
- In a response, the message body may contain the requested resource.
Where would one find a list of currently active HTTP Headers?
Internet Assigned Numbers Authority(IANA)
What are the most common HTTP Request Methods?
- GET
- HEAD
- POST
- PATCH
- PUT
- DELETE
What are the most common HTTP Response Status Codes?
- 200: Ok
- 301: Moved Permanently
- 302: Found
- 304: Not modified
- 403: Forbidden
- 404: Not Found
- 500: Internal Server Error
What is a Browser Cache?
An area on the computer’s file system where web content can be stored by the web browser for quick retrieval later