[Zope] From POST to GET

ender kthangavelu@earthlink.net
Mon, 5 Mar 2001 13:17:48 -0800


On Monday 05 March 2001 18:09, Peter Bengtsson wrote:
>>You are missing the point I'm afraid.
>>I'm processing POSTed variables and all of a sudden I decide that I wan=
t to
>>GET somewhere else using a RESPONSE.redirect(sompage?cgi=3Dquerystring)
>>statement.
>>Do the RESPONSE.redirect whilst processing the POST data causes the
>>RESPONSE.redirect to act a POST. This is clear if I look at the Z2.log
>> which shows something like this:
>> "POST /somepage?cgi=3Dquerystring HTTP/1.1"
>>
>>If I skip that redirect thing and replace it with a ugly hyperlink the
>>request is stored in the log lik this:
>> "GET /somepage?cgi=3Dquerystring HTTP/1.1"
>>
>>See the difference and the problem?
>>I want my RESPONSE.redirect to act like a GET request like a hyperlink
>> does.
>>
>>Peter


you could try out the dtml-contract tag i just released. the default beha=
vior=20
if a user asks for a dtml method (say foo) and their input is bad is to u=
se=20
whatever error handler you specify (say bar). but it won't redirect them =
to=20
it, it will write straight to the connection the rendering of bar (having=
=20
added the error messages to the namespace). to the client it looks like a=
=20
request for
http://www.domain.com/foo=A0(with POST)
still.

hth=20

kapil thangavelu