WEEE-Open / pytarallo

Python T.A.R.A.L.L.O. API
MIT License
2 stars 4 forks source link

Use requests.Session to handle cookies #16

Closed lvps closed 6 years ago

lvps commented 6 years ago

Create a session in the constructor and use that instead of a new request. This should solve all our cookie problems and the edge case of logout() returning an ambiguous 403, since it lets the server decide on cookie management and delete them on actual logout.

Example: https://stackoverflow.com/a/21737086