HTTP Flashcards

1
Q

What is a client?

A

A piece of computer hardware or software that accesses a service made available by a ‘server’ by sending requests as part of the client-server model of computer networks

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

What is a server?

A

A piece of computer hardware or software that provides functionality, such as sharing data or resources among multiple clients or performing computations, for other programs or devices, called ‘clients’.

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

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 HTTPrequestmessage?

A

An HTTP method - GET, PUT, POST, HEAD, OPTIONS
The request target - usually a URL or the absolute path of the protocol, port, and domain are usually characterized by the request context
The HTTP version - defines the structure of the remaining message

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

What three things are on the start-line of an HTTPresponsemessage?

A

The HTTP version
A status code
A status text

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. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value.

HTTP headers is a field of an HTTP request of response that passes additional context and metadata about the 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 request or response message?

A

Not all requests have one: requests fetching resources, like GET, HEAD, DELETE, or OPTIONS, usually don’t need one.

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

What is the difference between the internet and the web?

A

The internet is the network of connected computers, the web uses HTTP protocols to link between URLs.

The Internet is a global network of networks while the Web, also referred formally as World Wide Web (www) is a collection of information that is accessed via the Internet. Another way to look at this difference is; the Internet is infrastructure while the Web is served on top of that infrastructure. Alternatively, the Internet can be viewed as a big book store while the Web can be viewed as a collection of books on that store. At a high level, we can even think of the Internet as hardware and the Web as software!

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