Answer the question
In order to leave comments, you need to log in
How in Flask to distinguish between incoming requests to the server?
There is a script and there is a server.
The script sends requests:
re= requests.post('http://127.0.0.1:5000', json=somedata1)
re2 = requests.post('http://127.0.0.1:5000', json=somedata2)
@app.route("/", methods=['GET', 'POST'])
def index():
temp1 = request.get_json()
temp2= request.get_json()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question