HTTP Messages Flashcards

1
Q

What is a client?

A

a computer that is designed to request information from 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 computer dedicated to providing information in response to requests

a computer dedicated to providing one or more services to other computers or devices on a network

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 is the format of an HTTP request message?

A

A start-line describing the requests to be implemented, or its status of whether successful or a failure. This start-line is always a single line.

An optional set of HTTP headers specifying the request, or describing the body included in the message.

A blank line indicating all meta-information for the request has been sent.

An optional body containing data associated with the request (like content of an HTML form), or the document associated with a response. The presence of the body and its size is specified by the start-line and HTTP headers.

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

What is the format of an HTTP response message?

A

Status Line:
Headers:
Body:

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

What are HTTP messages?

A

HTTP messages are how data is exchanged between a server and a client. There are two types of messages: requests sent by the client to trigger an action on the server, and responses, the answer from the server.

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