HTTP Methods Flashcards

1
Q

CRUD, the Create equivalent is…

A

POST

Usually 201, 404, 409…

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

CRUD the Read equivalent is…

A

GET (name: value in URL) UNSECURE
POST (name: value NOT in URL)

Usually 200, 404…

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

CRUD the Update “replace” equivalent is…

A

PUT

Usually 405, 200, 204, 404…

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

CRUD the Update “modify” equivalent is…

A

PATCH

Usually 200, 204, 404, 405…

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

CRUD the Destroy equivalent is…

A

DELETE

Usually 200, 404, 405…

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

The GET Method

A
GET requests...
can be cached
remain in the browser 
can be bookmarked
IS UNSAFE and should not be used for sensitive data
Only used for requesting data
GET requests have length restrictions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The POST Method

A
POST is...
Never cached 
Never in browser history
Cannot be bookmarked
Have no restrictions on data length
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The PUT Method

A

PUT sends data to create/update a resource

PUT requests are idempotent ‘unchanging’ unlike POST. A POST request will create a resource multiple time while PUT will not.

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

The HEAD Method

A

Checks that a READ request will work without sending a response.

Good to use before returning a large response.

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

The DELETE Method

A

Deletes a resource

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

The PATCH Method

A

Patch is used to partially UPDATE a resource

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

The OPTIONS Method

A

Describes the communication options for the target source

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

The CONNECT Method

A

Starts two-way communication with

the requested resource (a tunnel)

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

The TRACE Method

A

Performs a message loop-back test
to test the path for the target resource
(useful for debugging)

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