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
POST should not be used when querying the server #51
Comments
+1 Changed this in my production version as well. Am willing to apply my patch. |
Yes I know and it is already on my list. Thanks for reporting it. |
Fixed in version 1.2.0 which will be publicly available within the next few days. |
I have recently published the release candidate (prerelease version including all features) to NPM and NuGet. Would be nice and very appreciated to get your feedback before publishing it. |
Hi. I have version 1.2.0 installed but my AJAX requests are still submitting as POST even if I specify GET. The request ends with HTTP error code 405. See attached screenshot of F12 in IE and my code below. < -----script> |
I have tested it right now and it works perfect. Propably you still use an old version of bootgrid (perhaps it is cached by your browser). For further discussion please provide a jsfiddle. |
I think the decision to use POST to submit page and search parameters to the server is not only incompatible with REST (see here for a discussion http://restcookbook.com/HTTP%20Methods/put-vs-post/), it also makes it awkward to design a decent REST service and worst of all it breaks caching.
I would like for example my bootgrid to query my service at /stuff/ and when I want to add to stuff I can just POST to /stuff/. Right now, even though this is feasible, I need to differentiate based on the POST body, which is far from ideal.
Is there a chance to revert the decision and use GET at all times when bootgrid reads data ?
The text was updated successfully, but these errors were encountered: