Hi!
I successfully managed to use the clientlogin api to login and get a status of "PASS". The http library I use correctly handles cookies and headers.
However, when I do either of the following requests after having received the PASS on clientlogin:
...api.php?action=parse&page=lol&format=json
or
...?action=query&assert=user&format=json
I get a readapidenied
error.
I only get this error when I'm trying to GET from my code. If I open a browser and login manually and then type the queries manually as well, I get a correct response. Any ideas as to why this is?