Hi,
I have been coding a little webdav servlet based on jakarta tomcat
webdavservlet.java on Apache Tomcat 4.1.24.
Now my problem is that, when the users webdav client connects to my
servlet it sends request starting with "OPTIONS /webdav/ HTTP/1.1.."
For this request it wants an response like:
HTTP/1.1 200 OK
DAV: 1,2
Allow: OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH,
COPY, MOVE, LOCK, UNLOCK
MS-Author-Via: DAV
Now, the problem is that instead of my servlet responding by using
doOptions, the doOptions is never called because tomcat
(CoyoteConnector?)
answers before my servlet with answer like:
HTTP/1.1 200 OK
Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS
Content-Type: text/plain
Content-Length: 0
Date: Sun, 26 Mar 2006 17:15:41 GMT
Server: Apache Coyote/1.0
And this causes the webdav client to answer wrong address, etc.
Strange thing is that doGet and doPut work, but not doOptions,
doHead, etc.
It seems like CoyoteConnector filters the OPTIONS request out? Does
anybody know how to get over this?
Thanks for your time :)
- Samuli
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]