import requests import json url = "http://localhost:8081/open-url" #Attempt to open google web page payload = {"url": "https://google.com"} print(f"Sending payload to {url}...") try: response = requests.post(url, json=payload) print(f"Status Code: {response.status_code}") print("If successful, a browser should open on your screen.") except Exception as e: print(f"Error: {e}")