Did you send the parameters "starttime", "edittime" and "token", should be taken from the edit page (I do that via regular expressions)? You can also check what error message you get (print the HTML you get from "action=submit" to a file and search for an error message) and handle it – it may be an edit conflict message or the evil message about the edit token.
Hans Oesterholt wrote:
L.S.,
I'm currently trying to create a bot that can automatically post forms to mediawiki. I've managed to do following:
- Log in to mediawiki.
- Get a page (using the Special:Export option).
Now I want to submit a page, but somehow that doesn't work. Does anyone have experience with creating a bot for mediawiki that can edit pages via http/forms?
Thanks in advance for your answers,
Hans Oesterholt-Dijkema
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l