Is there any basic example that shows how to get POST parameters from the request in mod python custom handler. I have no trouble in GET requests, where I get my arguments from request.args, BUT if method is POST, request.args is None.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
request.argsstores query string parameters, as mentioned in the documentation.If you want to get POST variables, you can always read the body of the request (
request.read()) and parse it (urldecode in your case).But keep in mind that, as mentioned on the official mod_python homepage:
Which means you may be better off using something more modern, like mod_wsgi.