httpwg / http-extensions

HTTP Extensions in progress
https://httpwg.org/http-extensions/
442 stars 146 forks source link

Method rewriting and Redirects #1916

Closed mnot closed 2 weeks ago

mnot commented 2 years ago

In some cases, the server may choose to respond indirectly to the QUERY request by returning a 3xx Redirection with a Location header field specifying an alternate Request URI from which the results can be retrieved using an HTTP GET request.

Some 3xx will rewrite the method, but others won't.

reschke commented 2 years ago

So this needs to be 303, right?

mnot commented 2 years ago

Yes. It might be worth mentioning that other redirects work too.

reschke commented 2 years ago

Which?

Yes, redirects work as expected, but if you want the subsequent request to be a GET, it needs to be 303, no?

reschke commented 1 month ago

This paragraph needs some rewriting, now that we have established what Location and Content-Location mean on a QUERY response.