[Zope] Can ZPT form call a url?

Phillip Hutchings sitharus at gmail.com
Tue May 24 17:16:41 EDT 2005


> The easiest way it to perform a redirect.
> 
> Unfortunately, HTTP allows automatic redirects only for "GET" requests.
> But, if you can live with "GET", then it is very easy.

Fortunately, most web browsers are lax and let you do this. Safari is
not, but the warnings are a bit obscure to most users, as a 302
response technically means to repost the data to a new URL - hence
Safari's 'do you want to resend this data' question.

A 303 response should be used to redirect a POST request. The user is
still supposed to be asked if they want to follow the redirect, but I
bet most browsers won't, as the specs are ambiguous.

-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com


More information about the Zope mailing list