HTTP Flashcards Preview

Web Development > HTTP > Flashcards

Flashcards in HTTP Deck (13)
Loading flashcards...
1

What is a client?

Requesters of a resource or service.

2

What is a server?

Providers of a resource or service.

3

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

GET

4

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

1. The HTTP Method(GET, PUT, POST, HEAD, OPTIONS etc.)

2. The request target, usually a URL, or the absolute path of the protocol, port, and domain are usually characterized by the request context.

3. The HTTP Version

5

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

1. The HTTP version(usually HTTP/1.1)

2. Status Code, indicating success or failure of the request.

3. Status text, textual description of the status code to help a human understand the HTTP message.

6

What are HTTP headers?

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. Whitespace before the value is ignored.

Metadata about the request/response.

Describe the request or response itself.

7

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

MDN

8

Is a body required for a valid HTTP request or response message?

No

9

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

1. The HTTP Method(GET, PUT, POST, HEAD, OPTIONS etc.)

2. The request target, usually a URL, or the absolute path of the protocol, port, and domain are usually characterized by the request context.

3. The HTTP Version

10

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

1. The protocol version(usually HTTP/1.1)

2. Status Code, indicating success or failure of the request.

3. Status text, textual description of the status code to help a human understand the HTTP message.

11

How to GET a html body from a url and make a file with the content.

http --body GET https://example.com > http-messages-recap/index.html

Make sure you type in the file-path where you want the new index.html to be made.

12

How to see both response and request status of an http-request.

--v

http --v GET https://example.com

13

Difference between internet and web.

Internet is computers on a network. IP Address

Web is http messages. You can put a link in one document to go to another document.