[Zope] From POST to GET

Max M maxmcorp@worldonline.dk
Tue, 6 Mar 2001 01:40:15 +0100


From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Peter
Bengtsson

>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>

I know that on the IIS there is::
   Request('varname')  // if you don't care about getting data from post or
get
and
   Request.Form('varname') // Data from Post
and
   Request.QuerysString('varname')  // data from get

But I just tried browsing the source for Zope's request module, and I can't
see any way to specify how to get data from post or get explicitly.

sorry

>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.

Perhaps you should rethink your approach and send you data in a form?
<form action="process_html" method=POST>
<input type=hidden name=loginname value=Peter%20Bengtsson>

Regards Max M

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act