BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

isapi filters

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Mark Horrocks
Guest





PostPosted: Wed May 16, 2007 4:15 pm    Post subject: isapi filters Reply with quote



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





PostPosted: Wed May 16, 2007 6:41 pm    Post subject: Re: isapi filters Reply with quote



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





PostPosted: Sat May 19, 2007 7:21 am    Post subject: Re: isapi filters Reply with 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...
Quote:
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
Mark Horrocks
Guest





PostPosted: Sat May 19, 2007 1:21 pm    Post subject: Re: isapi filters Reply with 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.

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





PostPosted: Sat May 19, 2007 8:50 pm    Post subject: Re: isapi filters Reply with quote

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&param2=?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





PostPosted: Sat May 19, 2007 9:20 pm    Post subject: Re: isapi filters Reply with quote

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&param2=$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





PostPosted: Tue May 22, 2007 8:11 am    Post subject: Re: isapi filters Reply with quote

Quote:
Multi parameter rule -

RewriteRule ^/scripts/my.dll/([^/]+)/([^/]+)$
/scripts/my.dll?param1=$1&param2=$2

Hi Rich,

I use the following rewrite rule

rewriterule ^/sport/([^/]+)/([^/]+)/([^/]+)$
http://www.sportdata.com.au/sdp/Sportdata.dll/reqLeagues?CID=$1&sportno=$2&stats=$3

The URL http://127.0.0.1/sport/343649/1173331/1 gets the right data from my
ISAPI but an image included is a 404 and the URL's generated by my ISAPI are
prepended with the original URL and then don't go anywhere

The original URL is
http://sportdata.com.au/sdp/Sportdata.dll/reqLeagues?CID=343649&SPORTNO=1173331&stats=1

This gets the regular data.

Thanks for your assistance so far by the way, much appreciated.

Mark Horrocks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.