Focal Point
URL Examination

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2521098331

August 24, 2005, 06:42 PM
Rich Dickeson
URL Examination
Does WebFOCUS support a means to interogate the URL to see what domain is requesting the exec to run from.

We need to know if the request is coming from inside or outside of our corporate firewall.. And depending on the domain, we set the server id, some special editing etc.

Thanks
August 25, 2005, 01:14 PM
Tony A
Not explicitly(?) but you could always embed JavaScript into your web page to interogate location.url using 'split'.

Entering 'javascript parse url' into google should get you some examples.
August 25, 2005, 01:43 PM
mgrackin
Rich, If there is an environment variable that contains this information you probably can get to it by adding <SENDVAR> syntax to the WebFOCUS Client SITE.WFS file. Do a search on the FocalPoint forum for 'HTTP_HOST' and you will find the thread in which something like this was discussed. If IP address of the client machine is sufficient for you to achieve what you are trying to do then add REMOTE_ADDR to the <SENDVAR> section of SITE.WFS.

<SENDVAR>
REMOTE_ADDR=&REMOTE_ADDR
</SENDVAR>
August 25, 2005, 02:11 PM
reFOCUSing
Mickey gave me these one a couple days ago. They may help also

<SENDVAR>
WEBSERV=&SERVER_NAME
WEBPORT=&SERVER_PORT
HTTPSERV=&HTTP_HOST
<ENDSENDVAR>