Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Slipjig mentioned this:</p> <p>"The browser stack does, and pretty much automatically, if you're willing to live with its other limitations (lack of support for all HTTP verbs, coercion of response status codes, etc.)."</p> <p>If that is acceptable to you, look at how Microsoft themselves deal with this in some of their APIs using the custom X-HTTP-Method header, like how they do it for WCF and OData:</p> <p><a href="http://www.odata.org/developers/protocols/operations" rel="nofollow">http://www.odata.org/developers/protocols/operations</a></p> <p>In MSDN, Microsoft also mentions this about using REST in conjunction with SharePoint 2010's WCF based REST API:</p> <p>msdn.microsoft.com/en-us/library/ff798339.aspx</p> <p>"In practice, many firewalls and other network intermediaries block HTTP verbs other than GET and POST. To work around this issue, WCF Data Services (and the OData standard) support a technique known as "verb tunneling." In this technique, PUT, DELETE, and MERGE requests are submitted as a POST request, and an X-HTTP-Method header specifies the actual verb that the recipient should apply to the request. For more information, see X-HTTP-Method on MSDN and OData: Operations (the Method Tunneling through POST section) on the OData Web site."</p> <p>Don Box's also had some words about this, but regarding GData specifically:</p> <p>www.pluralsight-training.net/community/blogs/dbox/archive/2007/01/16/45725.aspx</p> <p>"If I were building a GData client, I honestly wonder why I'd bother using DELETE and PUT methods at all given that X-HTTP-Method-Override is going to work in more cases/deployments."</p> <p>There's an article about Silverlight and Java interop which also addresses this limitation of Silverlight by giving the same advice:</p> <p>www.infoq.com/articles/silverlight-java-interop</p> <p>"Silverlight supports only the GET and POST HTTP methods. Some firewalls restrict the use of PUT and DELETE HTTP methods.</p> <p>It is important to point out that true RESTful service can be created (conforming to all the REST principles listed above) only using the GET and POST HTTP methods, in other words the REST architecture does not require a specific mapping to HTTP. Google’s GData X-Http-Method-Override header is an example of this approach.</p> <p>The following HTTP methods overrides may be set in the header to accomplish the PUT and DELETE actions if the web services interpret the X-HTTP-Method-Override header on a POST:</p> <pre><code>* X-HTTP-Method-Override: PUT * X-HTTP-Method-Override: DELETE" </code></pre> <p>Hope this helps -Josh</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload