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.
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.
request.args
stores 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.