I don't know if Tomcat would be able to do this without some code. It is not intended to replace Apache, IIS, or some other web server. It is intended to be a Java Servlet/JSP container.
You might try creating a servlet that does something like this public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String buf = req.getRequestURL().replace( "my_context_path", "/cgi-bin/put.pl"); resp.sendRedirect( buf ); } So let's say you have a URL like http://www.myserver.com/realitycheck, then replace to req.getRequestURL().replace( "/realitycheck", "/cgi-bin/put.pl" ) Then use that in the redirect. Someone else might/will have a better idea but it seems to me you are trying to kill a fly with a water cannon where a fly swatter would be more efficient. -----Original Message----- From: Zhan, Jimmy [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 3:53 PM To: Tomcat Users List Subject: RE: HTTP PUT - HOW TO CONFIG? Hi, Thanks for your responses! I don't know tomcat how handle HTTP PUT requests. But I want tomcat transfers all PUT requests to my handler /cgi-bin/put.pl as apache does. How to config in tomcat to do this? Thanks Jimmy Zhan --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]