Intercept WebDAV requests

A

Abhijit

Hi

I want to use WebDAV for file editing, transfer, etc. At the same
time, I need to store certain information about the file and the user
in a database each time a file is modified/created.

I came across a thread which suggested using IHttpModule. Can I create
a HttpModule interface for a WebDAV virtual directory. It seems like I
need to put the WebDAV directory in a web application or Website,
which has an IHttpModule interface to intercept WebDAV requests.

I am using IIS as the server and IE 6 as my client. Can someone point
me in the right direction?

Thanks,
A.
 
G

Guest

WebDav support requires processing URI that doesn't map to file name
and more importantly uri that doesn't have file extension at the end.

Example: http://myserver/SomeFolder

Unfortunately, IIS uses the file extension to identify the Web Service
Extension (ISAPI Application)

I could not configure IIS so far to route the http requests that do not have
a file extension to ASP.Net

As per another reply to similar question in
microsoft.public.dotnet.languages.csharp news group, adding an extension map
..* to aspnet_isapi.dll should help.
Unfortunately, the IIS Application Configuration screen doesn't accpt
such mapping. (Complains 'Wrong extension format').

I tried wildcard application map to aspnet_isapi.dll
(with 'Verify file exists' turned off).
As per documentation, this is supposed to route all requests to the
aspnet_isapi.dll
IIS routes all requests only if there is a file extension.

I can see similar question in may news groups, but with no result.
If no luck in few days, I am hoping to open up a support call with MSFT.
 
G

Guest

One option I am considering is to write a regular ISAPI filter to rewrite
urls with no file extension at end with a dummy extension.

Example: Rewrite http://myserver/SomeFolder as
http://myserver/SomeFolder.noext

Now .noect can be mapped to aspnet_isapi.dll and subsequently routed to http
handlers using web.config.

This way, all WebDav folder info requests can be handled by ASP.Net handlers.

I have not written C++ ISAPI Filter.
Not sure if this is a vialble approach.

If any one has solved such problem, will appreciate feedback.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top