[Zope] GET vs. POST

Passin, Tom tpassin@mitretek.org
Fri, 9 May 2003 16:49:10 -0400


[Dennis Allison]
>=20
> How do you transfer information via post when using
> REQUEST['RESPONSE'].redirect?
>=20
> How do you get Zope to use POST as its default rather than GET?
>=20

Hmm, methinks you do not have a clear idea of how these things work.
The choice of POST vs GET is not up to Zope per se.  It is up to the
User Agent, which in practice means it is up to the design of the web
page itself.  There is no Zope "default".

If you want to redirect to a new page and pass some information to the
redirected page while you do so, you would give the information to the
page template via (typically) REQUEST variables (which you can set
during Zope processing) - or other Zope variables - so that the DTML or
ZPT that builds the redirected page can include the data into the page.
Sometimes the data ends up populating visible or hidden fields in a
form, sometimes you decide to apply it in other ways.  At this level,
neither GET nor POST is involved, since it would happen before the page
is built and sent back to the browser.

If this is not helpful enough, then give us a few (simplified and clear)
scenarios tha trouble you, and maybe we can help clarify and simplify.

Cheers,

Tom P