> On Friday, November 1, 2002, at 05:20 AM, Oliver Brodwolf wrote: > >> At a http-request, my application has to decide very early, if the >> stream >> has to be sent to the user-process; then it decides if a4d can handle >> the >> request. I think that active4d won't be able to handle everything for >> me at >> the moment - I have to analyze the request header, which is why I >> wrote my >> own 4d-plugin. The URL, the suffix, the host and the cookies are all >> important for me before before a4d can have the request. > > Since I am doing the header parsing for you, you could use the > pre-execute hook to examine > the headers and cookies, then send the stream to the user process if > necessary > and return false to keep Active4D from executing the request. But the user process needs Active4D too. Like this. normal process: -analyze if it is a user-request -give a message to the user-process with the streamref. -then choose if Active4D should handle the request, or if it is a standard request. > > This makes me realize that I need to pass the streamref into the hook. > > >> But if I can use at least some of the new functionality, is it >> possible to >> change or add parameters to the form variables collection? Would it be possible for the first set of parameters like host, url etc. to always be at the same position, so that we can use them with a constant iterator, so that access to these values can be handled quickly? > > Yes, the pre-execute hook will be given handles to all of the request > collections, > with which you can use any of the generic collection commands. What is with the performance? Until now, I tried to make my system very fast, so that all the requests like pictures, scripts, css and small not dynamic html-pages are answered very quick.
And will it be possible to work with active4D as it worked before? I like to the new features, but for me, it will not be so easy to integrated them. Gruss Oliver
