[Zope-dev] __before_publishing_traverse__ calls
RESPONSE.redirect(): is there another way to change the browser URL?
Andreas Kostyrka
andreas@kostyrka.priv.at
27 Sep 2002 22:40:07 +0200
Am Fre, 2002-09-27 um 20.58 schrieb Craeg K Strong:
> Thanks for the advice!
>
> Unfortunately, I don't know how to do what you suggest.
>
> I believe that a redirect always causes a GET, rather than a POST, no?
>
> Also, hidden form fields are filled in on the original request, but the redirect
> flushes the request. All of my fields are gone! :-(
>
> Perhaps I could do something really nasty and override the Python method
> in urllib2 that handles HTTP redirects?
What to hell does urllib2 have to do with Zope?
>
> Today, that code creates a new REQUEST object, throwing away the old request.
> I could cause it to insert some value that I would then test for,
> to distinguish the two cases.
REQUEST.redirect sends a status code to the browser which then requests
the new URL by itself, ...
>
> That would be the king of all hacks, but it might work :-}
Probably not. The only thing you can do with redirect is to urlencode
your parameters, ...
Andreas
--
Andreas Kostyrka <andreas@kostyrka.priv.at>