import requests import urllib3 api_url = "https://ai-app-ly.infinityfreeapp.com" # Disable SSL certificate verification urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) data = { "register": True, "username": "rth", "password": "gkfgfgh" } response = requests.post(api_url, data=data, verify=False) json_data = response.json() message = json_data['message'] print(message)