# importing the requests library 
import requests 
  
# api-endpoint 
URL = "https://projects.benoist.ch/groupB/login.php"
  
myObject = {'uname' : 'house', 
            'pw' : '1234qwer', 'login':''}

  
# sending get request and saving the response as response object 
r = requests.post(url = URL, data=myObject) 


# print(r.text)
substring = '<h1>Patient List</h1>'
if(substring in r.text):
    print('OK')
else:
    print('KO')
