Networks Flashcards

1
Q

What is a client?

A

service requesters, software that communicates and connects to a server

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

What is a server?

A

providers of a resource or service; can run multiple things and share resources with clients
serves data

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 request

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

What three things are on the start-line of an HTTP response message?

A
  1. Protocol version, usually HTTP/1.1
  2. Status code indicating success or failure of the request (200, 404, 302 for example)
  3. A status text; brief purely informational textual description of the status code to help a human understand the HTTP message

(Typical status line looks like:
HTTP/1.1 404 Not Found.)

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

What are HTTP headers?

A

key-value pairs that allow us to store extra info about the request
they allow the client and the server to pass additional information with an HTTP request or response

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

Where would you go if you wanted to learn more about a specific HTTP Header?

A

IANA Registry (mdn)

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 request or response message?

A

not required

post, patch, put usually will have one but aren’t required

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