Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 46393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:57:32+00:00 2026-05-10T15:57:32+00:00

What is the practical benefit of using HTTP GET, PUT, DELETE, POST, HEAD? Why

  • 0

What is the practical benefit of using HTTP GET, PUT, DELETE, POST, HEAD? Why not focus on their behavioral benefits (safety and idempotency), forgetting their names, and use GET, PUT or POST depending on which behavior we want?

Why shouldn’t we only use GET, PUT and POST (and drop HEAD, DELETE)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:57:33+00:00Added an answer on May 10, 2026 at 3:57 pm

    The [REST][1] approach uses POST, GET, PUT and DELETE to implement the CRUD rules for a web resource. It’s a simple and tidy way to expose objects to requests on the web. It’s web services without the overheads.

    Just to clarify the semantic differences. Each operation is rather different. The point is to have nice HTTP methods that have clear, distinct meanings.

    POST creates new objects. The URI has no key; it accepts a message body that defines the object. SQL Insert. [Edit While there’s no technical reason for POST to have no key, the REST folks suggest strongly that for POST to have distinct meaning as CREATE, it should not have a key.]

    GET retrieves existing objects. The URI may have a key, depends on whether you are doing singleton GET or list GET. SQL Select

    PUT updates an existing object. The URI has a key; It accepts a message body that updates an object. SQL Update.

    DELETE deletes an existing object. The URI has a key. SQL Delete.

    Can you update a record with POST instead of PUT? Not without introducing some ambiguity. Verbs should have unambiguous effects. Further, POST URI’s have no key, where PUT must have a key.

    When I POST, I expect a 201 CREATED. If I don’t get that, something’s wrong. Similarly, when I PUT, I expect a 200 OK. If I don’t get that, something’s wrong.

    I suppose you could insist on some ambiguity where POST does either POST or PUT. The URI has to be different; also the associated message could be different. Generally, the REST folks take their cue from SQL where INSERT and UPDATE are different verbs.

    You could make the case that UPDATE should insert if the record doesn’t exist or update if the record does exist. However, it’s simpler if UPDATE means UPDATE and failure to update means something’s wrong. A secret fall-back to INSERT makes the operation ambiguous.

    If you’re not building a RESTful interface, then it’s typical to only use GET and POST for retrieve and create/update. It’s common to have URI differences or message content differences to distinguish between POST and PUT when a person is clicking submit on a form. It, however, isn’t very clean because your code has to determine if you’re in the POST=create case or POST=update case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Why do you think the iterator will ever 'be zero'?… May 11, 2026 at 11:54 am
  • added an answer Consider writing a REST-style WCF service using WebHttpBinding. May 11, 2026 at 11:54 am
  • added an answer First, make all current NULL values disappear: UPDATE [Table] SET… May 11, 2026 at 11:54 am

Related Questions

What is the practical benefit of using HTTP GET, PUT, DELETE, POST, HEAD? Why
When using routing in a Camel context via RouteBuilder, What is the practical difference
Could you please explain what the practical usage is for the internal keyword in
What is the best practice of Unicode processing in C++?
What is the best practice for naming UI controls (textboxes, drop-downs, etc.) on forms
what is the best practice for multilanguage website using DOM Manipulating with javascript? I
What is the best practice for storing keys, and or passwords for a website.
What is the best practice for writing a rather large wcf service, containing a
What is the best practices regarding storing files uploaded from users? Currently, I am
What is the accepted practice for indenting SQL statements? How should this example be

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.