Redirecting behavior with HTTP Status 307 using HttpURLConnection on WebLogic seems different with RFC 7231/RFC 7238
(Doc ID 2630555.1)
Last updated on FEBRUARY 11, 2022
Applies to:Oracle WebLogic Server - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
Redirecting behavior with HTTP Status 307 using HttpURLConnection on WebLogic seems different with RFC 7231/RFC 7238.
There is 3 servltes deployed on WebLogic.
- <LANDING_SERVLET> is for landing.It display only a landing page.
- <REDIRECT_SERVLET> is for redirect to <LANDING_SERVLET> with HTTP Status 307.
- <HTTP_REQUEST_SERVLET> request to <REDIRECT_SERVLET> with using HttpURLConnection with HTTP POST method.
When Accecing <HTTP_REQUEST_SERVLET>,
HttpURLConnection requests to <REDIRECT_SERVLET> with HTTP POST method and receives HTTP Status 307.
then, the HttpURLConnection requests to <LANDING_SERVLET> with HTTP GET method
in spite of RFC 7231/RFC 7238 said "MUST NOT change the request method".
resource resides temporarily under a different URI and the user agent
MUST NOT change the request method if it performs an automatic
redirection to that URI.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document