"Dwebb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > I have a question about how Tomcat handles redirects. We have a vendor > who wrote an application for us and they tell us that they always use > the same method of issuing redirects in their code. > > What we have seen is on certain requests from a WAP handset the > application will issue a redirect and Tomcat will issue it as an HTTP > 302 redirect. On other handsets for some reason these same redirects > are issued as an HTTP 200 with an embedded link that the user has to > click on to redirect. > > We believe this may be to the POST headers that the handset is sending > but haven't managed to narrow it down to which. > > We would like all of these redirects to be done with the automatic 302 > redirect. >
Tomcat always sends a 302 redirect when response.sendRedirect(newURL); is called. However, a lot of user-agents wrongly follow the redirect with a GET when the initial request was a POST. I'm guessing that your vendor has some special code that is attempting to work around this. > Is there any way to force these redirects to be done with the HTTP 302? > > We are running Tomcat 5.5.11, Java 1.4.2_04-b05 on Linux 2.6.9-34.ELsmp > > Cheers, > > Danny > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]