[AOLSERVER] requests question

0 views
Skip to first unread message

Xavier Bourguignon

unread,
Mar 15, 2008, 2:03:08 PM3/15/08
to AOLS...@listserv.aol.com
Hi

I want to call a procedure everytime a request starts and another proc
everytime a request ends.
Is this possible? If so how or where do I do that?

Thank you

--
Xavier Bourguignon


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Michael A. Cleverly

unread,
Mar 15, 2008, 2:23:55 PM3/15/08
to AOLS...@listserv.aol.com
On Sat, Mar 15, 2008 at 12:03 PM, Xavier Bourguignon
<crouz...@gmail.com> wrote:
> I want to call a procedure everytime a request starts and another proc
> everytime a request ends.
> Is this possible? If so how or where do I do that?

The command you are seeking is ns_register_filter (see
http://aolserver.com/docs/devel/tcl/api/general.html#ns_register_filter).
Use either a preauth filter to call a procedure at the beginning of
the request and a trace filter to call one at the end of the request.

Michael

Xavier Bourguignon

unread,
Mar 15, 2008, 6:08:09 PM3/15/08
to AOLS...@listserv.aol.com
Excellent, thank you, that was exactly what I was looking for.


--
Xavier Bourguignon

Robert Seeger

unread,
Mar 16, 2008, 12:53:18 PM3/16/08
to AOLS...@listserv.aol.com
As a minor suggestion, be organized in where you create filters for your pages so that you can locate those calls later (and find any/all filters you've registered). If I recall correctly, there's no way to get a list of registered filters... which can make debugging later difficult.

Rob Seeger


Xavier Bourguignon wrote:
Excellent, thank you, that was exactly what I was looking for.

On 15/03/2008, Michael A. Cleverly <mic...@cleverly.com> wrote:
  
On Sat, Mar 15, 2008 at 12:03 PM, Xavier Bourguignon
 <crouz...@gmail.com> wrote:
 >  I want to call a procedure everytime a request starts and another proc
 >  everytime a request ends.
 >  Is this possible? If so how or where do I do that?


The command you are seeking is ns_register_filter (see
 http://aolserver.com/docs/devel/tcl/api/general.html#ns_register_filter).
  Use either a preauth filter to call a procedure at the beginning of
 the request and a trace filter to call one at the end of the request.

 Michael



 --
 AOLserver - http://www.aolserver.com/

 To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
 body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

    

  

Xavier Bourguignon

unread,
Mar 16, 2008, 2:47:55 PM3/16/08
to AOLS...@listserv.aol.com
Ok thanks, I keep all of them in one file only, so I should be fine on that one.


--
Xavier Bourguignon

Fenton, Brian

unread,
Mar 18, 2008, 7:25:22 AM3/18/08
to AOLS...@listserv.aol.com
Hi Xavier,

I know this is 9 years old, but it should still be of some use in familiarising yourself with some of AOLserver's functionality. It certainly was for me and I think much of it is still true.
http://philip.greenspun.com/wtr/aolserver/introduction-1.html


best wishes
Brian

Xavier Bourguignon

unread,
Mar 18, 2008, 1:59:59 PM3/18/08
to AOLS...@listserv.aol.com
Thank you Brian
Reply all
Reply to author
Forward
0 new messages