Apr-14-2018, 06:45 PM
(Apr-14-2018, 05:05 PM)ian Wrote: This button's type is 'submit'. I'm wondering if I can use requests.Session().PostSubmit a form requests is possibly with Requests.
Example with this form Pen
With Requests:
import requests headers = {'Content-type': 'application/x-www-form-urlencoded'} data = {"email": "[email protected]"} response = requests.post('http://127.0.0.1:5000/email', headers=headers, data=data)So this example i have run before,it will send data to a Flask and catch with
email = request.form['email']
on server.