HTTP Flashcards

1
Q

What is HTTP( HyperText Transfer Protocol)?

A

A networking protocol that runs over TCP/IP and governs communication between web browsers and web servers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is TCP/IP?

A

A protocol suite that governs how data packets are transferred over the internet from one machine to another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a DNS lookup?

A

Sending the domain name to the local DNS and getting back the IP address of the web server hosting the domain name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When is a DNS lookup performed?

A

Before HTTP communication begins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an HTTP request?

A

A message sent from the web browser to the web server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an HTTP response?

A

A message sent from the web server back to the web browser in response to an HTTP request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are HTTP response/requests composed of?

A
  • Start Line
  • Header Field
  • Blank Line
  • Message Body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is contained in an HTTP request / response start line?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is contained in an HTTP request Header Field?

A
  • Hostname
  • Browser Identifier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is contained in an HTTP response Header Field?

A
  • # of Bytes in message Body
  • Media type of message body
  • Datetime of response
  • Datetime resource was last modified
  • Web Server software identifier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is contained in an HTTP request / response Message Body?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Where would one find a list of currently active HTTP Headers?

A

Internet Assigned Numbers Authority(IANA)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the most common HTTP Request Methods?

A
  • GET
  • HEAD
  • POST
  • PATCH
  • PUT
  • DELETE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the most common HTTP Response Status Codes?

A
  • 200: Ok
  • 301: Moved Permanently
  • 302: Found
  • 304: Not modified
  • 403: Forbidden
  • 404: Not Found
  • 500: Internal Server Error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Browser Cache?

A

An area on the computer’s file system where web content can be stored by the web browser for quick retrieval later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an Entity Tag (ETag)?

A

An identifier for a specific version of a web resource

17
Q

What is the HTTP Header “If-None-Match”?

A

Compares the provided Etag to the Etag of the resource

18
Q

What is the HTTP Header “If-Modified-Since”?

A

Request the web server only send the requested resource if the resource has changed since the specified date/time.

19
Q

What is the HTTP Header “Expires”?

A

Contains a date/time indicating when the requested resource is considered “stale”.

20
Q

What is the HTTP Header “Cache-Control”?

A

Used to specify a number of caching directives.

21
Q

What are common browser caching methods?

A
  • If-None-Match
  • If-Modified-Since
  • Expires
  • Cache-Control
22
Q

What is the difference between HTTP and HTTPS?

A

HTTPS encrypts HTTP traffic between a browser and web server so a network sniffer cannot intercept sensitive information in the HTTP traffic like passwords, credit card numbers, financial transactions, etc.

23
Q

What is the Transport Layer Security (TLS) protocol?

A

Protocl used in HTTPS which uses asymmetric public keys to encrypt data between the browser and web server.

24
Q

What is a network sniffer?

A

Software that monitors network traffic and allows users to inspect HTTP requests and responses.