 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mark Horrocks Guest
|
Posted: Wed May 16, 2007 4:15 pm Post subject: isapi filters |
|
|
Can anyone point me to some source code examples for building an isapi
filter to cloak the symbol ?
I just want to have a URL like http://mydomain/myISAPI.dll/123 instead of
http://mydomain/myISAPI.dll?123
IOW I want to filter the question mark out of the URL
Mark Horrocks |
|
| Back to top |
|
 |
Richard Bakos Guest
|
Posted: Wed May 16, 2007 6:41 pm Post subject: Re: isapi filters |
|
|
Mark Horrocks wrote:
| Quote: | Can anyone point me to some source code examples for building an
isapi filter to cloak the symbol ? |
Here is one written in C -
http://cheeso.members.winisp.net/IIRF.aspx
Rich Bakos |
|
| Back to top |
|
 |
Mark Horrocks Guest
|
Posted: Sat May 19, 2007 7:21 am Post subject: Re: isapi filters |
|
|
Thanks Rich,
This looks like an excellent solution, but I have a problem with
installation. It worls fine in the test case on my development machine but
not on my server (2003).
The installation steps incl the following :
10. Stop the IISADMIN service. To do this, either type net stop
iisadmin /y at a command prompt, or use the Services applet that
is located in Administrative Tools
11. Start the World Wide Web Publishing Service. Do this by typing
net start w3svc at a command prompt, or by using the Services
applet that is located in Administrative Tools.
I might have thought that restarting the server did the same thing. When i
restarted it, IIS shows that the filter has a green up arrow for my filter
but it doesn't work. Any idea what can be wrong here? Is my installation not
complete?
I have tried asking on the Ionics forum but it doesn't seem too active.
Mark Horrocks
"Richard Bakos" <rbakos (AT) nothing (DOT) com> wrote in message
news:464b09e9$1 (AT) newsgroups (DOT) borland.com...
|
|
| Back to top |
|
 |
Mark Horrocks Guest
|
Posted: Sat May 19, 2007 1:21 pm Post subject: Re: isapi filters |
|
|
I figured how how to use this but every link in the resulting page is
prepended with the original URL I typed into the address browser. It can't
find pictures and even links written by my ISAPI are prepended with the pre
filter URL. Maybe it's my rewrite rule but I can't see how. It translates
correctly and gets the right data from the URL but as i said, the URLs in
the result page are broken.
Mark Horrocks
"Mark Horrocks" <markhorrocks_at_yahoo_dot_com> wrote in message
news:464e5f25$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Thanks Rich,
This looks like an excellent solution, but I have a problem with
installation. It worls fine in the test case on my development machine but
not on my server (2003).
The installation steps incl the following :
10. Stop the IISADMIN service. To do this, either type net stop
iisadmin /y at a command prompt, or use the Services applet that
is located in Administrative Tools
11. Start the World Wide Web Publishing Service. Do this by typing
net start w3svc at a command prompt, or by using the Services
applet that is located in Administrative Tools.
I might have thought that restarting the server did the same thing. When i
restarted it, IIS shows that the filter has a green up arrow for my filter
but it doesn't work. Any idea what can be wrong here? Is my installation
not complete?
I have tried asking on the Ionics forum but it doesn't seem too active.
Mark Horrocks
"Richard Bakos" <rbakos (AT) nothing (DOT) com> wrote in message
news:464b09e9$1 (AT) newsgroups (DOT) borland.com...
Mark Horrocks wrote:
Can anyone point me to some source code examples for building an
isapi filter to cloak the symbol ?
Here is one written in C -
http://cheeso.members.winisp.net/IIRF.aspx
Rich Bakos
|
|
|
| Back to top |
|
 |
Richard Bakos Guest
|
Posted: Sat May 19, 2007 8:50 pm Post subject: Re: isapi filters |
|
|
Mark Horrocks wrote:
Hi Mark,
| Quote: | I figured how how to use this but every link in the resulting page is
prepended with the original URL I typed into the address browser. It can't
find pictures and even links written by my ISAPI are prepended with the pre
filter URL. Maybe it's my rewrite rule but I can't see how. It translates
correctly and gets the right data from the URL but as i said, the URLs in
the result page are broken.
|
Without seeing your rewrite rule, and understand exactly what you want
to do, I can't be sure what the problem is. Maybe you could post your
rule(s)?
Here are a few examples of how you might rewrite the incoming urls being
requested from a browser.
RewriteRule ^/scripts/my.dll/([^&]+)$ /scripts/my.dll/?$1
This should translate this -
/scripts/my.dll/param
to this -
/scripts/my.dll/?param
Multi parameter rule -
RewriteRule ^/scripts/my.dll/([^/]+)/([^/]+)$
/scripts/my.dll?param1=$1¶m2=?2
This should translate this -
/scripts/my.dll/Mark/Horrocks
to this -
/scripts/my.dll?param1=Mark?param2=Horrocks
HTH
Rich Bakos |
|
| Back to top |
|
 |
Richard Bakos Guest
|
Posted: Sat May 19, 2007 9:20 pm Post subject: Re: isapi filters |
|
|
Mark Horrocks wrote:
Hi Mark,
| Quote: | I figured how how to use this but every link in the resulting page is
prepended with the original URL I typed into the address browser. It
can't find pictures and even links written by my ISAPI are prepended
with the pre filter URL. Maybe it's my rewrite rule but I can't see
how. It translates correctly and gets the right data from the URL but
as i said, the URLs in the result page are broken.
|
Without seeing your rewrite rule, and understand exactly what you want
to do, I can't be sure what the problem is. Maybe you could post your
rule(s)?
Here are a few examples of how you might rewrite the incoming urls being
requested from a browser.
RewriteRule ^/scripts/my.dll/([^/]+)$ /scripts/my.dll/?$1
This should translate this -
/scripts/my.dll/param
to this -
/scripts/my.dll/?param
Multi parameter rule -
RewriteRule ^/scripts/my.dll/([^/]+)/([^/]+)$
/scripts/my.dll?param1=$1¶m2=$2
This should translate this -
/scripts/my.dll/Mark/Horrocks
to this -
/scripts/my.dll?param1=Mark?param2=Horrocks
HTH
Rich Bakos |
|
| Back to top |
|
 |
Mark Horrocks Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot 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
|
|