XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 How to Create a REST Protocol
Subject: PUT versus POST
Date: 2004-12-03 04:08:37
From: jjn1056@yahoo.com

I know from reading some of the REST forums that there is an ungoing discussion about PUT versus POST. First of all, a lot web browsers don't support PUT and many web servers block PUT as well, so a lot of people allow POST to do double duty. If you read the HTTP recommendation, it says that PUT is to be used to insert a given file at a given location, so in theory that could be used both for inserting new files and updating old ones. On the other hand POST is used to send a file and query parameters to a given URI, so that is more about modifying or processing that it is about replacing a given file.


Anyone out there in the REST community can help me wrap my head around this? It's a little hard for me to just accept PUT=INSERT, POST=UPDATE.


Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • PUT versus POST
    2004-12-03 05:01:54 jgregorio [Reply]

    The Atom Wiki contains a rather comprehensive list of all clients and servers and their support for PUT and DELETE.


    http://www.intertwingly.net/wiki/pie/PutDeleteSupport




Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938