You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2015/06/18 10:41:47 UTC

connector redirect

Hi guys,

when redirecting ports between connectors tomcat uses a 302 ATM, any reason
to not use a 307 (ie support POST redirect as well)?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

Re: connector redirect

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hmm, link between connectors is tomcat specific so I guess we could have a
flag to support all http methods and not rely on default sendRedirect


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-06-18 11:57 GMT+02:00 Mark Thomas <ma...@apache.org>:

> On 18/06/2015 09:41, Romain Manni-Bucau wrote:
> > Hi guys,
> >
> > when redirecting ports between connectors tomcat uses a 302 ATM, any
> reason
> > to not use a 307 (ie support POST redirect as well)?
>
> Because the servlet spec says it has to be a 302.
>
> https://java.net/jira/browse/SERVLET_SPEC-100
>
> Additional support for that change welcome.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Re: connector redirect

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Mark,

On 6/18/15 5:57 AM, Mark Thomas wrote:
> On 18/06/2015 09:41, Romain Manni-Bucau wrote:
>> Hi guys,
>>
>> when redirecting ports between connectors tomcat uses a 302 ATM, any reason
>> to not use a 307 (ie support POST redirect as well)?
> 
> Because the servlet spec says it has to be a 302.
> 
> https://java.net/jira/browse/SERVLET_SPEC-100
> 
> Additional support for that change welcome.

Voted

-chris


Re: connector redirect

Posted by Mark Thomas <ma...@apache.org>.
On 18/06/2015 09:41, Romain Manni-Bucau wrote:
> Hi guys,
> 
> when redirecting ports between connectors tomcat uses a 302 ATM, any reason
> to not use a 307 (ie support POST redirect as well)?

Because the servlet spec says it has to be a 302.

https://java.net/jira/browse/SERVLET_SPEC-100

Additional support for that change welcome.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org