uaveiro-leci/1ano/2semestre/labi/tema05/src/poster_example.py

8 lines
158 B
Python

import requests
url = "http://127.0.0.1:8080/form"
data = {"username": "admin", "password": "admin"}
f = requests.post(url, data=data)
print(f.status_code)