On 1/20/2012 4:31 PM, Karsten Fuhrmann wrote: > Hello, > i am using a POST request for one of my forms but still want to be able > to access the get parameters. > The usual > param1 = req.args.get('param1', '')
This should work. > > is not working in the POST request. But the get param is in the URL, > when i look at the output of tracd. > > 127.0.0.1 - - [20/Jan/2012 16:07:19] "POST > /svnpermcontrol?param1=admin¶m2=on HTTP/1.1" 200 - > > Any ideas how to access the get parameters in a post request? > For a POST, you shouldn't pass parameters in the URL, but rather use <input> elements (type=hidden if you don't want to see them). While Python >= 2.6 normally would combine the URL parameters with those in the application/x-www-form-urlencoded content of the POST, Trac sticks with the pre-0.6 behavior of only taking into account the POST parameters from the content, ignoring those found in the URL (see http://trac.edgewall.org/changeset/7774). -- Christian -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-dev@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.