import requests

# URL = "https://www.skenz.it/iot"

# r = requests.get(URL) # r contains the https response
# print(r.status_code) #200 success
# print(r.headers["content-type"])
# print(r.text)

# URL = "https://www.skenz.it/uppercase.php"
# txt = "giulia"

# r = requests.get(URL, params={"text":txt}) # r contains the https response
# print(r.status_code) #200 success
# print(r.headers["content-type"])
# print(r.text)


URL = "https://www.skenz.it/uppercase_post.php"
txt = "Gabriele"

my_header = {"Content-Type":"application/x-www-form-urlencoded"}

r = requests.post(URL, data={"text":txt}, headers=my_header) # r contains the https response
print(r.status_code) #200 success
print(r.headers["content-type"])
print(r.text)