I am trying to get post request raw data in python, can anyone tell me how? OR the equivalence method of file_get_contents("php://input") in Python?
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- Flush single app django 1.9
- __call__() missing 1 required positional argument:
- Upload file to Google Cloud Storage using AngularJ
- Where is the best place to put one-time and every-
相关文章
- Is there a size limit for HTTP response headers on
- Does there exist empty class in python?
- ImportError: No module named twisted.persisted.sty
- appcfg.py command not found
- Get a header with Python and convert in JSON (requ
- Google app engine datastore string encoding proble
- python unit testing methods inside of classes
- Requiring tensorflow with Python 2.7.11 occurs Imp
To get a POST request's 'raw' data you do
body
now contains the POST request body where the request parameters are typically stored. This is usually a key-value pair which can be translated into a python dictionary for you withjson.loads(self.request.body)
webapp2
usesWebOb
internally so you can access the request body viarequest.body
. See http://docs.webob.org/en/latest/reference.html#request-body