Upload a webpage to a web server using a Python program.
import requests

url = 'http://<web server address>'
file = {'webpage': open('index.html', 'rb')}

response = requests.post(url, files=file)

print(response.status_code)