Module 03-01 HTTP and Web APIs Flashcards

1
Q

What does URL stand for?

A

Uniform Resource Location

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

What determines how your browser should communication with a web server and what are the two most common examples?

A

The Protocol. HTTP (Hypertext Transfer Protocol) and HTTPS (* Secure)

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

What is www?

A

A subdomain

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

What is the .com, .net, etc.

A

TLD (Top Level Domain)

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

What is always needed but rarely seen after the TLD?

A

A port. HTTP defaults to port 80, HTTPS defaults to port 443.

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

/directory/index.html and /products/traffic-cones are examples of what?

A

Path

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

What is located at a path?

A

A resource

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

What are Query string parameters?

A

key and value pair(s) after a question mark in a URL i.e. google.com/seach?q=cats has the Query string parameters q and cats, searching for the value cats with key q.

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

What does a DNS server do?

A

It translates domains to IP addresses, like a phone book for websites

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

What elements does an HTTP request message contain?

A
  • An HTTP method like GET, POST, HEAD, etc.
  • The path to the resource that the client wants to interact with
  • Headers, which contain information about the request, such as the format of data
  • A message body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What elements does an HTTP response message contain?

A
  • A status code that indicates success, error, or redirects
  • Response headers containing information like the format of data or encoding information
  • A message body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is HTTP stateless?

A

Yes. There is no relationship made between two requests sent to the server, and the server doesn’t assume any two requests are related. Each request must contain enough information on its own for the server to fulfill the request.

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

What does the GET method do?

A

Requests data from the specified resource

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

What does the POST method do?

A

Submits data to the specified resource

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

What does the PUT method do?

A

Replaces all current representations of the target resource with the request payload. Updates existing data but creates data if it doesn’t exist.

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

What does the DELETE method do?

A

Deletes the specified resource

17
Q

What is HTTP status code range 100-199?

A

Information Responses

18
Q

What is HTTP status code range 200-299?

A

Successful Responses

19
Q

What is HTTP status code range 300-399?

A

Redirection Messages

20
Q

What is HTTP status code range 400-499?

A

Client Error Responses

21
Q

What is HTTP status code range 500-599?

A

Server Error Responses