[Zope] DTML Variable for hostname?
Mark Snellings
msnellings@stellarcomms.com
Wed, 6 Mar 2002 14:45:24 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0029_01C1C51D.8CCDB720
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Within a DTML Method, how do I access the name of the host that the portal
is running on?
The URL printed by <dtml-var &dtml-portal_url> includes not only the
hostname but also the port and top level directory. Is there a variable for
accessing just the hostname?
(hostname maybe localhost, an IP address or a fully qualified DNS registry
name)
Thanks
Mark
------=_NextPart_000_0029_01C1C51D.8CCDB720
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D157474119-06032002>Within a DTML=20
Method, how do I access the name of the host that the portal is =
running=20
on?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D157474119-06032002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D157474119-06032002>The URL=20
printed by <dtml-var </SPAN>&dtml-portal_url<SPAN=20
class=3D157474119-06032002>> includes not only the hostname but also =
the port=20
and top level directory. Is there a variable for accessing just =
the=20
hostname?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D157474119-06032002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D157474119-06032002>(hostname=20
maybe localhost, an IP address or a fully qualified DNS registry=20
name)</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D157474119-06032002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D157474119-06032002>Thanks</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D157474119-06032002>Mark</SPAN></FONT></FONT></DIV></BODY></HTML>
------=_NextPart_000_0029_01C1C51D.8CCDB720--