It's a small web demo. My server side is written by python-3(flask), both front-end and back-end work fine. But now I want to write another client python code and try to send data(say, 'foobar') to my server.
Here's part of my server side code.
@app.route('\', methods=['POST', 'GET']
def show_index():
return render_template('index.html')
I am not sure how to write the client code and how to modify my server code.