Answers for "flask sending post request"

0

flask sending post request

#make a POST request
import requests
dictToSend = {'question':'what is the answer?'}
res = requests.post('http://localhost:5000/tests/endpoint', json=dictToSend)
print 'response from server:',res.text
dictFromServer = res.json()
Posted by: Guest on May-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language