ASP.Net 2.0 HttpHandler configuration

V

vplusplus

I found by accident following behavior with ASP.Net 2.0 web.config

Background:

I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.

Step 1:
I added IIS wildcard map to aspnet_isapi.dll (with 'Verift that file exists'
turned off).
This routed all requests to ASP.Net http pipeline.
I verified this by adding an http module and logging the url of incoming
requests.

Step 2:
I had added an web.config entry as follows:
<httpHandlers> <add verb="*" path="*" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed the calls to the Common handler as long as an file extension is
given.
Example: http://localhost/Sub1/Sub2/AnyFile.anyextension
Still urls with no file extension didn't reach the handler.
Example: http://localhost/Sub1/Sub2/

I accidentally typed two stars for the path:
<httpHandlers> <add verb="*" path="**" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed all url requests (with or with out any file extension) to my
handler.

Question:
Is this TWO START behavior a bug or is this by design that I can bank on?

Thanks in advance.
 
G

Guest

I have the job to do the same thing. Do you have any tips, documents, examples ... sourcecode?

I would really appreciate to hear from you!
Chris
I found by accident following behavior with ASP.Net 2.0 web.config

Background:

I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.

Step 1:
I added IIS wildcard map to aspnet_isapi.dll (with 'Verift that file exists'
turned off).
This routed all requests to ASP.Net http pipeline.
I verified this by adding an http module and logging the url of incoming
requests.

Step 2:
I had added an web.config entry as follows:
<httpHandlers> <add verb="*" path="*" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed the calls to the Common handler as long as an file extension is
given.
Example: http://localhost/Sub1/Sub2/AnyFile.anyextension
Still urls with no file extension didn't reach the handler.
Example: http://localhost/Sub1/Sub2/

I accidentally typed two stars for the path:
<httpHandlers> <add verb="*" path="**" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed all url requests (with or with out any file extension) to my
handler.

Question:
Is this TWO START behavior a bug or is this by design that I can bank on?

Thanks in advance.

User submitted from AEWNET (http://www.aewnet.com/)
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top