list at joreybump.com
Thu Mar 8 14:17:27 EST 2007
David Kramer wrote: > 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 That won't work with Publisher, which will attempt to map each part of the URL to a publishable object.