I thought it wouldn't be a terrible idea to open up the GET method to contain a body but according to the original spec the GET body is to be ignored completely. There's also caching which would break because the important bit of the request would live in the stripped body.
RFC 10008: The new HTTP Query Method
91–100 of 189 posts
Re: RFC 10008: The new HTTP Query Method
#92Re: RFC 10008: The new HTTP Query Method
#93I wonder if HTML forms will add support for QUERY: This would avoid the annoying re-submission warnings you're getting if you refresh a page that was returned by a POST form submission, since QUERY is required to be idempotent.
Re: RFC 10008: The new HTTP Query Method
#94I wonder if HTML forms will add support for QUERY: This would avoid the annoying re-submission warnings you're getting if you refresh a page that was returned by a POST form submission, since QUERY is required to be idempotent.
This is better solved with the post redirect get pattern.
If we can do QUERY forms, it would be an ideal time to add JSON encoding for forms.
Re: RFC 10008: The new HTTP Query Method
#95Re: RFC 10008: The new HTTP Query Method
#96I wonder if HTML forms will add support for QUERY: This would avoid the annoying re-submission warnings you're getting if you refresh a page that was returned by a POST form submission, since QUERY is required to be idempotent.
Depends whether your form submission should expect side effects or not. Most forms submissions have side effects. If the effect is truly idempotent, wouldn't PUT be a better verb? That is also supposed to be idempotent.
Re: RFC 10008: The new HTTP Query Method
#97Earlier quoted context omitted.
They could be updated to not delete it, like they would require for this new method anyway.
Agree. They should not delete the body in the first place.
Re: RFC 10008: The new HTTP Query Method
#98Re: RFC 10008: The new HTTP Query Method
#99Just allow body for get. Problem solved.
Re: RFC 10008: The new HTTP Query Method
#100I wonder if HTML forms will add support for QUERY: This would avoid the annoying re-submission warnings you're getting if you refresh a page that was returned by a POST form submission, since QUERY is required to be idempotent.