Apr-08-2021, 08:25 AM
Run this command
Make a POST request to a web page, and return the response text:
python -m pip install requeststhis will install requests lib.
Make a POST request to a web page, and return the response text:
import requests url = 'https://www.w3schools.com/python/demopage.php' myobj = {'somekey': 'somevalue'} x = requests.post(url, data = myobj) print(x.text)