Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import requests url = 'https://w3.p2hp.com/python/demopage.php' myobj = {'somekey': 'somevalue'} x = requests.post(url, json = myobj) #print the response text (the content of the requested file): print(x.text)
<!DOCTYPE html>
<html>
<body>
<h1>This is a Test Page</h1>
</body>
</html>