HTTP Flashcards

1
Q

What is HTTP

A

HyperText Transfer Protocol

- exchanges information over the web

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

components inside an HTTP REQUEST

A
  • version
  • verb/method
  • URL
  • headers
  • body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

components inside an HTTP REPONSE

A
  • version
  • status code
  • headers
  • body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which HTTP verbs are safe?

A

GET

safe: doesn’t alter the state of the server

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

Which HTTP verbs are idempotent?

A

GET, PUT, DELETE

idempotent: “non-repeatable”, sending multiple identical requests acts the same as sending just one

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

levels of HTTP status code

100-500

A

100: informational
200: success
300: redirect
400: client error
500: server error

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

What are the most important HTTP verbs & what do they do?

A

GET - retrieval
POST - create
PUT - update
DELETE - delete

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

What do the following HTTP status codes mean?

  • 200
  • 201
  • 403
  • 404
  • 500
  • 503
A

200: OK
201: Created
403: Forbidden
404: Not Found
500: Internal Server Error
503: Service Unavailable

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