[mod_python] Newbie: how do I parse query strings and such?

Manfred Stienstra manfred.stienstra at dwerg.net
Sun Jan 4 12:55:40 EST 2004


On Sun, 2004-01-04 at 08:49, Leif K-Brooks wrote:
> Sorry for the newbie question, but how do I parse query strings, handle 
> POST data, and such? Is there a library I should be using?

In the util module, there is a FieldStorage object.

fs = util.FieldStorage(request, True)

http://www.modpython.org/live/current/doc-html/pyapi-util-fstor.html

If you don't like it, you free to do it some other way (:

Manfred



More information about the Mod_python mailing list