[Zope] From POST to GET
Phil Harris
phil.harris@zweb.co.uk
Tue, 6 Mar 2001 01:22:09 +0000
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 )