[14:28:00] Hi, I'm currently working a Program in Java that edits a Page of my Wiki. I tried 'translating' the code example on the API:Edit page but I'm currenty stuck with the Issue, That whenever I try to recieve an CSRF-Token I get a blank response. I suspect that I have an Issue with cookies. Does someone has an example on how to correctly call it through [14:28:00] Java? [14:49:11] @Guest85#0000 it doesn't require any cookies [14:49:11] Have you tried opening it in browser? [14:49:49] Oh and are you logged in? [14:57:58] Being logged in implies it requires cookies [15:06:31] I mean part of the Code example include saving cookies from the Login response so as Vulpix said, I also think Cookies are necessary. But I just stumbled upon the Page for Client Code and there are 2 Frameworks who does exactly what I wanted to do, so I tried that [15:08:25] Cookies are necessary, even if you want to edit being logged out. The edit token you get is saved into the session on the server, and should match when you post it when saving the edit [15:31:24] Where does it say you need cookies [15:31:24] [[API:Tokens]] [15:31:43] https://mediawiki.org/wiki/API:Tokens [15:31:51] * Where does it say you need cookies [15:32:19] The internet runs on cookies [15:32:59] https://m.mediawiki.org/wiki/API:Edit [15:33:18] When you look at the examples, you see save the cookies after logging in [15:34:16] to be more specific, look at the method "loginRequest" at the PHP example [15:34:36] I agree that API:Tokens doesn't say explicitly you should save the returned cookies for next requests, but I can confirm you it *needs* cookies [15:38:47] Oh I was looking at the js example [15:40:45] that example assumes you're running inside a MediaWiki page (because it uses the mw.Api module) on the browser, which one expects it's accepting cookies already. A nodejs example would be a different story [15:42:03] Alright, I Managed to do that with the said Client Code. Thanks anyway! [16:42:40] There's separate javascript and MediaWiki JS examples though