HTTP Flashcards

1
Q

What is GET request?

A

GET is used to request data from a specified resource.

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

What is POST request?

A

POST is used to send data to a server to create/update a resource.

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

What is PUT request?

A

PUT is used to send data to a server to create/update a resource.

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

What is DELETE request?

A

The DELETE method deletes the specified resource.

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

What is HEAD request?

A

The HEAD method is used to ask only for information about a document, not for the document itself.( return metadata) HEAD is much faster than GET.

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

What is PATCH request?

A

The HTTP methods PATCH can be used to update partial resources. For instance, when you only need to update one field of the resource.

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

What is the main difference between PUT and PATCH?

A

PUT and PATCH are HTTP verbs and they both relate to updating a resource.

  • PUT to a URL creates/replaces the resource in its entirety at the client defined URL
  • PATCH to a URL updates part of the resource at that client defined URL.

For put request we need to send all fields to update even if we don’t need to update everything, for PUTCH we can send only one fieds.
{ “first”: “Michael”, “last”: “Angelo” }

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

What kinds of http statuses do you know? (5)

A
  • 1xx: Information
  • 2xx: Successful
  • 3xx: Redirection
  • 4xx: Client Error
  • 5xx: Server Error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is 200 code?

A

OK - The request is OK (this is the standard response for successful HTTP requests)

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

What is 201 code?

A

Created - The request has been fulfilled, and a new resource is created

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

What is 301 code?

A

Moved Permanently - The requested page has moved to a new URL

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

What is 400 code?

A

Bad Request - The request cannot be fulfilled due to bad syntax

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

What is 401 code?

A

Unauthorized - The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided

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

What is 403 code?

A

Forbidden - The request was a legal request, but the server is refusing to respond to it

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

What is 404 code?

A

Not Found - The requested page could not be found but may be available again in the future

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

What is 500 code?

A

Internal Server Error - A generic error message, given when no more specific message is suitable

17
Q

What is SSL?

A

SSL - ( Secure Sockets Layer ) and, in short, it’s the standard technology for keeping an internet connection secure and safeguarding any sensitive data that is being sent between two systems. Or are protocols for establishing authenticated and encrypted links between networked computers

18
Q

What is HTTPS?

A

HTTPS (Hyper Text Transfer Protocol Secure) appears in the URL when a website is secured by an SSL certificate.