[mod_python] Re: how to access url parameters?

Chad Whitacre chad at zetaweb.com
Mon Dec 13 11:43:37 EST 2004


> I'm new to mod_python (and python itself, to be honest).  But I've
> programmed in many other languages (java, c#, VB.Net, PHP, ASP, etc.).

Welcome :-)


> What I'm trying to figure out is how to access GET (querystring) and
> POST (form) parameters from a PSP page.

The object representing your HTTP request is documented here:

   http://modpython.org/live/current/doc-html/pyapi-mprequest.html

Check out add_common_vars under "Methods" and subprocess_env and args 
under "Members". Not sure about any PSP-specific steps needed though.


hth,
chad



More information about the Mod_python mailing list