I want to do a post request on a website with Python. Here is the code
with requests.Session( ) as s:
s.get(url)
logdata = {'login': 'xxx', 'password': 'xxx'}
s.post(url,data=log_data)
r=s.get(url)
I remembered these lines were enough to open the url with the good login data but it seems not. Does someone know why?