In google app engine, how to iterate through form fields (python, wsgiref.handlers)

Posted by MarcoB on Stack Overflow See other posts from Stack Overflow or by MarcoB
Published on 2010-06-05T16:11:02Z Indexed on 2010/06/05 16:12 UTC
Read the original article Hit count: 162

Filed under:
|
|
|

Using python and wsgiref.handlers, I can get a single variable from a form with self.handler.request.get(var_name), but how do I iterate through all form variables, be they from GET and POST? Is it something like this?

for field in self.handler.request.fields: value = self.handler.request.get(field)

Again, it should include both fields included in the POST and fields from the query string, as in a GET request.

Thanks in advance folks...

© Stack Overflow or respective owner

Related posts about python

Related posts about google-app-engine