User:Patrick Nagel/Login with snoopy post-1.15.3

API:Login describes how to log in to a Wiki using the API. This was easy to do with Snoopy in the days before MediaWiki 1.15.3 - I used the code from MediaWiki_Bulk_Page_Creator. Since this is no longer possible (for a good reason: security), here is the code I use now:

(the above script fetches a page from a private Wiki, with action=render - but after having logged in, you can do whatever you want, it's not limited to fetching pages)

Note that I'm not very experienced with neither Snoopy, nor the MediaWiki API, yet, so it may well be that there is a better solution. Feel free to point out improvements on the discussion page! --Patrick Nagel 03:22, 30 June 2010 (UTC)

An anonymous user points out on the discussion page, that the script can be made independent of the cookie name. --Patrick Nagel 02:36, 23 July 2010 (UTC)