[Zope] URL Redirection problems...

Vitor Varalonga vpedrosa@ciberbit.pt
Fri, 14 Dec 2001 10:22:32 +0000


--------------0A1F327D1CFF030DE875ECF7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



Florent Guillaume wrote:

> Strictly speaking this is not correct. You should use
>
> container.REQUEST.RESPONSE.redirect("/abc/xpto?a=1&b=2&c=3")

Hum... I though about it to...
You mean I have to encode the URL.
I tried it to and it didn't work out either.


> Maybe your browser is very standards compliant ?
>
> But somehow I doubt this is it. What browser do you use ? What Zope
> version ? What's in REQUEST.form ?

The browser I'm using is Internet Explorer 6.00.2462.0000.
Concerning Zope, it must be version 2.5.0b2 since the install file was
Zope-2.5.0b2-win32-x86.exe.
As I mentioned in my original message, variables a, b and c are not
stored in the REQUEST.form object, but I still can reach them through
the property QUERY_STRING.
Just a strange particularity: if I try to redirect instead to the
absolute path of my destination URL, the variables passed through the
query string are stored correctly in the REQUEST.form object, as in:

container.REQUEST.RESPONSE.redirect("http://www.dummy.pt/abc/xpto?a=1&b=2&c=3")



kind regards,

Vitor Varalonga


--------------0A1F327D1CFF030DE875ECF7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt></tt>&nbsp;<tt></tt>
<p><tt>Florent Guillaume wrote:</tt>
<blockquote TYPE=CITE><tt>Strictly speaking this is not correct. You should
use</tt><tt></tt>
<p><tt>container.REQUEST.RESPONSE.redirect("/abc/xpto?a=1&amp;amp;b=2&amp;amp;c=3")</tt></blockquote>
<tt>Hum... I though about it to...</tt>
<br><tt>You mean I have to encode the URL.</tt>
<br><tt>I tried it to and it didn't work out either.</tt>
<br><tt></tt>&nbsp;
<blockquote TYPE=CITE><tt>Maybe your browser is very standards compliant
?</tt><tt></tt>
<p><tt>But somehow I doubt this is it. What browser do you use ? What Zope</tt>
<br><tt>version ? What's in REQUEST.form ?</tt></blockquote>
<tt>The browser I'm using is Internet Explorer 6.00.2462.0000.</tt>
<br><tt>Concerning Zope, it must be version 2.5.0b2 since the install file
was</tt>
<br><tt>Zope-2.5.0b2-win32-x86.exe.</tt>
<br><tt>As I mentioned in my original message, variables a, b and c are
not</tt>
<br><tt>stored in the REQUEST.form object, but I still can reach them through</tt>
<br><tt>the property QUERY_STRING.</tt>
<br><tt>Just a strange particularity: if I try to redirect instead to the</tt>
<br><tt>absolute path of my destination URL, the variables passed through
the</tt>
<br><tt>query string are stored correctly in the REQUEST.form object, as
in:</tt><tt></tt>
<p><tt>container.REQUEST.RESPONSE.redirect("<A HREF="http://www.dummy.pt/abc/xpto?a=1&b=2&amp;amp;c=3">http://www.dummy.pt/abc/xpto?a=1&amp;b=2&amp;amp;c=3</A>")</tt>
<br><tt></tt>&nbsp;<tt></tt>
<p><tt>kind regards,</tt><tt></tt>
<p><tt>Vitor Varalonga</tt>
<br><tt></tt>&nbsp;</html>

--------------0A1F327D1CFF030DE875ECF7--