Until the end of december 2018 I was able to login to Moodle from a script and download some files (daily backups). In january the provider hosting our Moodle server upgraded Moodle to version 3.6.something. Since then I can no longer perform a successfull login from my script.
The reason for this is that the login page now contains a "logintoken" parameter and it is uinclear to me how I can obtain a value for this parameter from 'outside' the Moodle server.
If I perform a login as before I do get a reply that contains a value for the token but simply reusing that value in further requests doesn't work.
Any help, suggestions or ideas would be welcome.