[mod_python] publisher - variable processing

David Kramer dkramer at aptima.com
Thu Mar 8 13:59:59 EST 2007


Peter Sanchez wrote:
> Is there a way to process data passed in the URL without using the 
> "normal" CGI method using publisher? ie,
> 
> www.domain.com/script?var1=foo&var2=blah - This I can use req.form for 
> the data. Say I want to use the following:
> 
> www.domain.com/script/foo/blah
> 
> I don't mind parsing the data myself, but how can I get the string 
> "/foo/blah" ?

The path_info member of the request object should give you what you want.

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


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.



More information about the Mod_python mailing list