Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import requests url = 'https://www.mdssup.ma/python/demopage.php' myfiles = {'file': open('myfirstreact.png' ,'rb')} x = requests.post(url, files = myfiles) #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>