How to replace `cgi.FieldStorage().getvalue("data", "")` for a POST request

I think this post that appeared in the related section of this thread should be able to help you: Alternative function for deprecated cgi - #6 by James_E