Hello
I am trying to get access to the http api via pythons request module. To say the least, I am stuck.
The ox logs clearly show that there is not nly a session id created, but a random secret, too. The secret is not delivered to python:
Due to that (I assume) no further handling of the session in python seems possible (cat:4, "session invalidated").
What am I missing?
Thanks, Toby
P.S.
Here my params for the login:
I am trying to get access to the http api via pythons request module. To say the least, I am stuck.
The ox logs clearly show that there is not nly a session id created, but a random secret, too. The secret is not delivered to python:
Code:
{"session":"long random string","user":"me@mydomain.de","user_id":10,"context_id":2,"locale":"en_US"}
What am I missing?
Thanks, Toby
P.S.
Here my params for the login:
Code:
login = {'name': 'me@mydomain.de', 'password': 'password'} r = requests.post("https://localhost/ajax/login?action=login", data=login, verify=False)
Comment