October 22, 2004, 08:29 PMjbmuir
ServletRequest elements available?
Just wondering if one can access the following elements of an HTTP request from within WebFocus. All three items listed below are available in an HttpServletRequest, so they could theoretically be available to a focexec via the WFServlet.
SERVER_NAME - The host name of the server that received the request.
SERVER_PORT - The port number on which the request was received.
REMOTE_ADDR - The IP address of the client that sent the request.
If these are available, what are the amper variables called?
October 23, 2004, 02:03 AM<WFUser>
Place the following code in your /client5x/etc/site.wfs file.
Recycle or app server or reload the web app. The variables will then always be available to your fexes as &variables (&REMOTE_ADDR, &SERVER_NAME, &SERVER_PORT)
The synatx will be different if you're running an old release.