import requests

url = 'http://localhost/ovpn/check_connection.php'
file_path = '/home/p21-0144/vpnGate/Ovpn/37.14.108.128.ovpn'

# Assuming the API expects the 'filepath' parameter
payload = {'filepath': file_path}

response = requests.post(url, data=payload)

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print(f"Error: {response.status_code}, {response.text}")