Wednesday, 1 April 2020

Get Vs Post, Put Vs Patch, Put Vs Post,

difference between Get and Post method c#

                         Get                                                                   Post

1. GET requests can be cached                    1. POST requests are never cached

2. GET requests remain in the browser         2. POST requests do not remain in the 
     history                                                      browser history

3. GET requests can be bookmarked            3. POST requests cannot be bookmarked

4. GET requests have length restrictions       4. POST requests have no restrictions 
                                                                     on data length

5. GET requests are only used to request      5. POST requests are only used to 
    data (not modify).                                      request data modify.    



difference between Put and Post method c#

                        Put                                                                      Post

1. This method is idempotent.                      1. This method is not idempotent.

2. We use UPDATE query in PUT.              2. We use create query in POST.

3. Put works as specific                              3. Post work as abstract.

4. in Put method, the client decides           4. In Post method, the server decides 
    which URI resource should have.              which URI resource should have .

difference between Put and Patch method c#

                        Put                                                                 Patch 

1. Put is used to replace  an existing             1. Patch is used to replace  an existing
    resource entirely.                                        resource partially. 

2. Put is idempotent.                                   2. Patch can be idempotent, but not
                                                                     required 

                

No comments:

Post a Comment