RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Shapira, Yoav
Howdy, Hey I just stumbled on this post which may help: http://dotnetguy.techieswithcats.com/archives/003089.shtml By the way, how do you simulate a PUT request for testing? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent:

RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Shapira, Yoav
Howdy, Please ignore my earlier response, WebDAV has nothing to do with it. I just verified PUT requests work fine in tomcat 4.1.27. I'm attaching a WAR with a servlet and a test class to show this is true. I'm also concurring with Mark Thomas in verifying bug 12938

AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Jürgen Schwarz
Hi, I use a Java client to send the PUT request: -- cut here -- connection.setDoOutput(true); connection.setRequestMethod(PUT); connection.setUseCaches(false); connection.setRequestProperty(Content-Type,text/xml); os=connection.getOutputStream() os.write(myXmlData); os.flush(); os.close(); --

How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Hi, how do I configure Tomcat 4.x to accept POST requests for my servlet? I always receive HTTP error 405 Method not allowed. POST works without problems. Regards, Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Shapira, Yoav
Howdy, Assuming you meant PUT in the message just like in your subject: simply add a doPut method to your servlet. Tomcat won't reject this unless you have a security constraint only allowing certain methods and rejecting PUT. Yoav Shapira Millennium ChemInformatics -Original

AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Yes, sorry, I meant PUT, but I have already a doPut() method in my servlet but it is never called because my calling client receives an error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT. I use the 'standard' Tomcat server.xml configuration plus entries for my servlet but I have