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 14, 2025
Applies to:
Oracle WebLogic Server - Version 12.2.1.3.0 and laterInformation in this document applies to any platform.
Symptoms
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".
https://tools.ietf.org/html/rfc7231#section-6.4.7
The 307 (Temporary Redirect) status code indicates that the target
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.
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.
Cause
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
Symptoms |
Cause |
Solution |
References |