My Oracle Support Banner

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 12.2.1.3.0 and later
Information 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.

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.

 

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.