HTTP MESSAGES RECAP Flashcards

1
Q

What is a client?

A

A client are devices that requesting to connect 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

A server is a computer, hardware that provides a function for 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

HTTP request GET

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

HTTP METHOD eg GET absolute path souce

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

The protocol version usually HTTP/1.1, status code, test representing status code

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

What are HTTP headers?

A

General Headers - apply to the whole message
response headers - give additional information about the server
representation headers - describe the original format of the message data and any encoding

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, bodies are optional

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