rest - Doing a HTTP PUT from a browser -


I would like to know what is the definitive (?) Answer to how to do one thing and then post / receive it from a browser Do - either HTML Forms or Ajax, as I browse mixed reports that which browsers have allowed (especially on AJAX side)

When the end of the back in the restate style is made, it is a good idea to use appropriate functions such as pad, head, option etc. In Rail, method (IIRC ?) Is used to emulate it, and at the end of the end the dispatch is sent to the appropriate controller for action. Is it now necessary (in late 2009)? What are the conventions? It appears that most browsers do not support ways other than GET and POST because it is a limited limitation. There is another question on the HTML form topic:

To simulate the methods of Put, Daylight, etc., you can add pseudo input to a regular GET / Post form -Results and translate your application so that your controller can see it as if this was a true PUT request, as you mentioned, I have used this method in Google Sitbricks (in Java - sorry, I have no rail -Special references But it can at least give you an idea) I think that this is probably the way we have been trapped for a while with HTML spec changes (and with this browser)

However , GET, Post, Put, and Deletes are supported in AXX by major browsers, so if you do not need a secret input, do not depend on HTML form.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -