How to prevent Tomcat redirect my request

2008-11-20 Thread jim ma
Hi all, I deployed a web application foo.war into tomcat 5.x . When I used httpclient to send post request to http://localhost:8080/foo;, I always get the http 302 redirect response . How can I prevent Tomcat to reply redirect response and directly adding the slash to my request url

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread jim ma
Great thanks , Kees. I will try httpunit . I still want to know if it is possible to stop Tomcat from redirecting. If yes, that will be zero code effort for our current implementation. Thanks Jim On Thu, Nov 20, 2008 at 5:51 PM, Kees Jan Koster [EMAIL PROTECTED] wrote: Dear Jim, I

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread jim ma
On Thu, Nov 20, 2008 at 6:19 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting. If yes, that will be zero code effort for our current implementation. Why is it a problem for you to use http://localhost:8080

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread jim ma
On Thu, Nov 20, 2008 at 6:48 PM, André Warnier [EMAIL PROTECTED] wrote: Mikolaj Rydzewski wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting. If yes, that will be zero code effort for our current implementation. Why is it a problem for you

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread jim ma
On Thu, Nov 20, 2008 at 6:48 PM, André Warnier [EMAIL PROTECTED] wrote: Mikolaj Rydzewski wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting. If yes, that will be zero code effort for our current implementation. Why is it a problem for you

Re: returning error messages from tomcat to http clients?

2008-11-20 Thread jim ma
The simple way is returning the http OK 200 status code instead of 500 , and set the error message to response body. Does it work for you ? On Thu, Nov 20, 2008 at 9:20 PM, Padraig O'Dowd [EMAIL PROTECTED] wrote: Hi, I'm encountering the following problem and just wanted to find out if

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread jim ma
On Thu, Nov 20, 2008 at 10:24 PM, André Warnier [EMAIL PROTECTED] wrote: jim ma wrote: On Thu, Nov 20, 2008 at 6:48 PM, André Warnier [EMAIL PROTECTED] wrote: Mikolaj Rydzewski wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting. If yes

Re: How to prevent Tomcat redirect my request

2008-11-21 Thread jim ma
On Fri, Nov 21, 2008 at 10:53 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: jim ma [mailto:[EMAIL PROTECTED] Subject: Re: How to prevent Tomcat redirect my request If I get 302 response and write some code to resend quest to the redirected location The point everyone's

Re: How to prevent Tomcat redirect my request

2008-11-21 Thread jim ma
Tell your clients to generate URLs like: http://host/your_servlet?url=url_to_fetch In other words you should implemet proxy that will handle redirects itself. Finally, your clients will not see any 302 redirects. I like this idea. It is greatly helpful , I think it works for my problem.

Re: How to change effective user id on Windows

2010-01-08 Thread Jim Ma
勹 发自我的 iPod 在 Jan 7, 2010,22:42,Looijmans, Mike mike.looijm...@oce.com 写到: The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Be warned that running a service under other

MapListener update

2009-07-14 Thread jim ma
change the host name looking up mechanism . Could you also point to me where can I find the Tomcat6.x document about difference with Tomcat5.x if there is ? for example architecture , execution etc. Thanks in advance . Jim Ma