durusmail: quixote-users: Checking if a form value came from POST or GET
Checking if a form value came from POST or GET
2003-10-13
2003-10-13
2003-10-13
2003-10-14
2003-10-14
Building scgi - lots of errors
2003-10-16
2003-10-16
2003-10-17
2003-10-22
2003-10-22
2003-10-14
Checking if a form value came from POST or GET
Neil Schemenauer
2003-10-14
On Tue, Oct 14, 2003 at 11:03:16AM +0100, Simon Willison wrote:
> I would argue that doing so is a fundamentally bad idea as you are
> throwing away information that has been sent to the server from the
> client without any specification having told you to throw that
> information away.

I don't think Andrew was suggesting throwing it away.  If the form
was POSTed then you could still get at the query string using
request.get_environ('QUERY_STRING').

I think what Andrew is suggesting is that if the method is POST then
only the body of the request will be parsed.  If then method is GET
then only the query string is parsed.

  Neil

reply