Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

ISAPI filter

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Multiple copies of dllhost???  
Author Message
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 1) Posted: Mon Jan 19, 2004 11:36 am
Post subject: ISAPI filter
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi!

We are doing some brainstorming to find new ways to develop out product in a
couple of different areas. One way to go includes writing an ISAPI filter
that "runs" before the ASP code gets parsed.

The reason for doing this is that we want to handle some special tags
differently and basically turn then into html before the ASP code gets
parsed.

Something like this:

Content on disk:
<html><body><mytag:blablabl></body></html>

Runs through the custom ISAPI filter:
<html><body><% asp code %></body></html>

Then the ASP gets parsed:
<html><body>I like beer</body><html>

The questions are:
1) Is this possible or is it just stupid, is there another way of doing
this?
2) Can this ISAPI filter be written using any .net language or do I need to
be coding unmanaged c++ for this?



Thanks

/Johan

 >> Stay informed about: ISAPI filter 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 2) Posted: Mon Jan 19, 2004 11:49 am
Post subject: Re: ISAPI filter [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Johan,

ASP opens and processes the file all within asp.dll. There server core
(where ISAPI filters live) is not involved. There are no programmatic hooks
between the time that ASP opens it and the time it parses it.

As a result of this, there is no practical way to do what you are suggesting
with a filter, or any other automatic hook. It is, in theory, possible to
write a URL_MAP filter that intercepts the name of the physical file
associated with the URL, makes a modified copy, and then points the physial
file name at the copy. There are some "gotchas" that make this impractical
for any real world use. First off, the performance would be pretty bad.
Also, it would only work for the actual file associated with the URL. If
the ASP page has any includes, executes or transfers in it, there would be
no useable notification allowing you to handle them.

Thank you,
-Wade A. Hilmo,
-Microsoft

PS: If you have any other questions regarding this or any other ISAPI
issue, please feel free to post them to
microsoft.public.platformsdk.internet.server.isapi-dev, which exists for
this purpose.

"Johan Karlsson" <johan.karlsson RemoveThis @adnome.se> wrote in message
news:#Y$q47l3DHA.3936@TK2MSFTNGP11.phx.gbl...
 > Hi!
 >
 > We are doing some brainstorming to find new ways to develop out product in
a
 > couple of different areas. One way to go includes writing an ISAPI filter
 > that "runs" before the ASP code gets parsed.
 >
 > The reason for doing this is that we want to handle some special tags
 > differently and basically turn then into html before the ASP code gets
 > parsed.
 >
 > Something like this:
 >
 > Content on disk:
 > <html><body><mytag:blablabl></body></html>
 >
 > Runs through the custom ISAPI filter:
 > <html><body><% asp code %></body></html>
 >
 > Then the ASP gets parsed:
 > <html><body>I like beer</body><html>
 >
 > The questions are:
 > 1) Is this possible or is it just stupid, is there another way of doing
 > this?
 > 2) Can this ISAPI filter be written using any .net language or do I need
to
 > be coding unmanaged c++ for this?
 >
 >
 >
 > Thanks
 >
 > /Johan
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ISAPI filter 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
isapi decryption filter - (I know there's an ISAPI group, it's just not on my newsserver) Is it possible to store encrypted asp pages on disk and let IIS decrypt them before sending them into the asp parser? Is an ISAPI filter the correct choice for this task? Are there better o...

isapi filter question - Hello, I have a quick question about iis and isapi filters. Is there a way to set up IIS kinda the opposite of how you are suppost to set up isapi filters? meaning, I do not want to set up my filter to * or .xyz, or whatever. I would like to say, iis..

IIS 6.0 IWA and ISAPI filter question - Hi, We have IIS 6.0 configured with an ISAPI filter. IIS is set with no authentication for the filter URI. The ISAPI DLL forwards the request to a third party server that executes IWA. When the third party server is set to require "Negotiate&quot...

isapi filter cookie - Hi, I am developing a pay-per-view web based application. I am writing an ISAPI filter that handles the security issues. When a user requests a page with embedded media file located in a particular directory the ISAPI checks whether the request came fro...

ISAPI filter to set REMOTE_USER - Hi, Background (highly summarized): I have a scenario where: * I have a proxy server in front of IIS * I authenticate at that proxy server * That proxy server injects a generic authorization header into the forward stream to IIS * I have both Basic..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]