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
Couldn't you just put them into the Post as hidden form fields, or am I missing the point again?
<input type="hidden" name="errmsg" value="Username Empty">
for example.
On Monday 05 March 2001 9:19 pm, Peter Bengtsson wrote:
Problem is this. I POST a form to a page called process_html.
Inside process I do some validation on posted variables. If i find that something is wrong I want to complain by sending the user to bad_input_html?errmsg=Username%20Empty (which is a GET request in theory). What happens is that the redirect is a mix of GET and POST. It is a pure POST request, but the querystring is picked up as well.
Truth is that this works fine in Internet Explorer, but it fails on the UK Vodafone WAP Gateway. It works on all other WAP Gateways except this one. This tag would work in a normal situation: <form action="process_html?loginname=Peter%20Bengtsson" method=POST> But with my gateway only the POST variables are sent and the variable "loginname" is ignored.
Anyhow. How do I "leave" the POST requesting and break out of it to do a GET request?? Is there a header I can set? <pseudo code> <dtml-call "RESPONSE.setHeader('REQUEST_METHOD: GET')"> </pseudo code>
Any smart suggestions more than welcome!
Peter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )