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 want to GET somewhere else using a RESPONSE.redirect(sompage?cgi=querystring) 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=querystring 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=querystring 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 behavior if a user asks for a dtml method (say foo) and their input is bad is to use whatever error handler you specify (say bar). but it won't redirect them to it, it will write straight to the connection the rendering of bar (having added the error messages to the namespace). to the client it looks like a request for http://www.domain.com/foo (with POST) still. hth kapil thangavelu