How to python request.form.get not getlist in Flask

The get and getlist here a specific thing for Flask in python. To obtain values of request variables using Python you simple use the request.form.get

payload = request.form.get("payload")

To retrieve and make sure what you actually retrieve if it’s a value or array.

payload = request.form.getList("payload")

Flask request documentation: