sendRedirect permanent vs temporary and GET vs preserve method
RFCs 7231 and 7238 now define 8 different redirect codes, yet HttpServletResponse.sendRedirect only supports 302
An additional API should be considered that allows both permanent and temporary redirection as well as Moved (MAY change method) vs Redirect (MUST NOT change method) semantics
MOVED_PERMANENTLY = 301; MOVED_TEMPORARILY = 302; TEMPORARY_REDIRECT = 307; PERMANENT_REDIRECT = 308;
- Issue Imported From: https://github.com/javaee/servlet-spec/issues/100
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
@glassfishrobot Commented Reported by gregwilkins
@glassfishrobot Commented markt_asf said: See also SPEC-74.
@glassfishrobot Commented markt_asf said: Also, RFC7231 now permits location headers to use relative URLs whereas RFC2616 and the Servlet spec require them to be absolute. HttpServletResponse.sendRedirect() should be updated not to convert relative URLs to absolute.
@glassfishrobot Commented Issue-Links: is related to SERVLET_SPEC-74
@glassfishrobot Commented This issue was imported from java.net JIRA SERVLET_SPEC-100
The status code aspects of this can be covered under #74