<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have discovered strange issues with all request 
variables. Here are examples only, but I was try all useable variables in the 
REQUEST.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I want to use redirect to another server with same 
relative link, but different domain,some like that:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-call "REQUEST.set('redirect_URL', 
'http://www.otherdomain.com' + URLPATH0)"&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-call 
expr="RESPONSE.redirect(_.str(redirect_URL), status=301)"&gt;</FONT><FONT 
face=Arial size=2><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>It does not work even if I make obstructions for 
request&nbsp;variables like _.str(), _[''] etc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In cases below variable 'redirect_URL' seems OK, 
but redirect goes into loop.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-call "REQUEST.set('redirect_URL', 
'http://www.otherdomain.com' + PATH_TRANSLATED)"&gt;<BR>&lt;dtml-call 
"REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
_.str(_['URLPATH1']))"&gt;<BR>&lt;dtml-call "REQUEST.set('redirect_URL', 
'http://www.otherdomain.com')"&gt;<BR></FONT></DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>In cases below variable 'redirect_URL'&nbsp;= 
'h'.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-call "REQUEST.set('redirect_URL', 
URL.replace(BASE0,'http://www.otherdomain.com')[0])"&gt;<BR>&lt;dtml-call 
"REQUEST.set('redirect_URL', 
URL.replace(_.string.split(HTTP_HOST,':')[0],'www.otherdomain.com')[0])"&gt;<BR></DIV>
<DIV></FONT></FONT><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I was try different (very old) Zope, but result is 
the same.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It is possible my uncorrect handle with request 
variables, but how to handle correct with them?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Many thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>J. Lukesh</FONT></DIV></BODY></HTML>