The Python Oracle

Get raw POST body in Python Flask regardless of Content-Type header

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Intrigue Looping

--

Chapters
00:00 Question
00:34 Accepted answer (Score 258)
01:25 Answer 2 (Score 44)
01:55 Answer 3 (Score 19)
02:59 Answer 4 (Score 13)
03:31 Thank you

--

Full question
https://stackoverflow.com/questions/1099...

Question links:
[How to get data received in Flask request]: https://stackoverflow.com/q/10434599

Accepted answer links:
[request.get_data()]: http://werkzeug.pocoo.org/docs/wrappers/...

Answer 2 links:
[request.stream]: https://werkzeug.palletsprojects.com/wra...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #flask #werkzeug

#avk47