if request.content_type.startswith("application/json"):
post_dict = json.loads(request.data.decode(encoding='utf-8'))
elif request.content_type.startswith("application/x-www-form-urlencoded"):
post_dict = request.form
if request.content_type.startswith("application/json"):
post_dict = json.loads(request.data.decode(encoding='utf-8'))
elif request.content_type.startswith("application/x-www-form-urlencoded"):
post_dict = request.form