||Re: Dynamic page names via httphandler
Boris Borzic <.> <Boris Borzic <.>>
||Fri, 19 Feb 2021 12:59:46 -0500
Rene <firstname.lastname@example.org> wrote in
> i want to use dynmaic page names.
> To use the example of my last post www.laser-plus.com/drucker_test
> This is neither a function nor an exisiting html file.
> The interal target function would be web_prodinfo3() with the paramter
> So i used filterrequest to change path and added variables with
> SetVar() and return .t. to end the filterrequest and run into the
> But it never reached the :HTTPHandler and was intercepted be the
> Only when i changed the :startline to match the function (prodinfo3) i
> am calling it finally worked.
> My question now, is that the way to do it?
The server needs to determine if the request is dynamic (eg. a function
call) or static (eg. a file). The following make the request dynamic:
- the :HttpRequest:StartLine contains a question mark "?"
- the :Path is empty and no index file is defined
- the :Path ends with ".PRG" or ".DLL"
- the :Path contains brackets "(" and ")"
industrial strength Xbase++ development tools