Hello DEV Community,
Just wondering how to retrive attributes in a post request body in flask
Hello DEV Community,
Just wondering how to retrive attributes in a post request body in flask
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
It depends on how the client sends the payload. For JSON requests,
request.get_json()is the usual way to access the body, while form submissions can be read withrequest.form. If you're still having trouble, sharing a sample payload and itsContent-Typeheader would help narrow it down.Thanks, this helps alot