You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Yves Piel (Jira)" <ji...@apache.org> on 2022/08/08 16:20:00 UTC

[jira] [Created] (CXF-8746) Force GET on 301 & 302 redirection

Yves Piel created CXF-8746:
------------------------------

             Summary: Force GET on 301 & 302 redirection
                 Key: CXF-8746
                 URL: https://issues.apache.org/jira/browse/CXF-8746
             Project: CXF
          Issue Type: New Feature
            Reporter: Yves Piel


In RFC "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content"
[https://www.rfc-editor.org/rfc/rfc7231.html|https://www.rfc-editor.org/rfc/rfc7231.html#section-6.4.1]

In following sub- sections of 6.4 redirection
 * 6.4.2.  301 Moved Permanently
 * 6.4.3.  302 Found

we can read
{noformat}
      Note: For historical reasons, a user agent MAY change the request
      method from POST to GET for the subsequent request.  If this
      behavior is undesired, the 307 (Temporary Redirect) status code
      can be used instead.{noformat}
Could be great to have this possibility and configure it as other redirection parameters, with a property like we have in [HTTPConduit|https://github.com/apache/cxf/blob/b6e3ab83a37cfb777d6eebf9711e552027bde37a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java#L195].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)