HTTPS Flashcards

1
Q

What is a client?

A

a piece of computer hardware or software that makes requests to a server and interprets their responses.

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

What is a server?

A

computer hardware or software that provides data or functionality to a client

listens for network requests and responds to them
a provider of a service or resource

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

Which HTTP method does a browser issue to a web server when you visit a URL?

A

GET

can go to the network tab and see the the request types

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

What is on the first line of an HTTP request message?

A
  • an HTTP method; GET, PUT, POST, etc
  • the request target; URL or absolute path, port etc
  • the HTTP version
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is on the first line of an HTTP response message?

A
  1. HTTP Protocol Version
  2. Status Code - 404, 302, or 200
  3. Status Descriptor (brief descriptor of the status code)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are HTTP headers?

A

HTTP headers let the client and the server pass additional information with an HTTP request or response.
HTTP headers are optional lines of text that specify the request or describe the body included in the message. key value pairs

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

What are HTTP headers?

A

HTTP headers let the client and the server pass additional information with an HTTP request or response

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

Is a body required for a valid HTTP message?

A

no - not at a protocol level, it is always optional.

when you work with APIs or designing APIs you want the body to be required sometimes, but this is at the app level, not the protocol level.

no, not all HTTP/responses have a body

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