Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT method may not be an appropriate choice. #42

Closed
batytskyy opened this issue Nov 7, 2014 · 3 comments
Closed

PUT method may not be an appropriate choice. #42

batytskyy opened this issue Nov 7, 2014 · 3 comments

Comments

@batytskyy
Copy link
Contributor

Not all browsers support PUT method, some of them send POST instead.
Maybe it is more convenient to send by POST then to handle both?

@sashasochka
Copy link
Member

@batytskyy, Any references that PUT is not supported in modern browsers? According to this http://stackoverflow.com/questions/535053/which-webbrowsers-use-http-1-1-by-default post all major browsers supported HTTP/1.1 since 1996.

Moreover, we're probably going to use other methods from HTTP/1.1 like DELETE, PATCH and others.

@batytskyy
Copy link
Contributor Author

But according to this http://stackoverflow.com/questions/13629653/using-put-and-delete-methods-in-spring-mvc it is not so. But there's a solution how to get this query with Spring.

@batytskyy batytskyy reopened this Nov 7, 2014
@sashasochka
Copy link
Member

Read carefully,

Most browsers don't support action=PUT in HTML forms.

And this is OK, since html forms should support only GET and POST according to HTML specs.

We're using AJAX, not html forms.

@sashasochka sashasochka modified the milestone: First release Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants