Fixed it,
For the edit page I had to do a GET and not a POST. Thanks anyway for your help!
--Hans
Hans Oesterholt schreef:
I just don't understand what's going on
When I start a browser (firefox) from scratch, and type in the header:
http://localhost:8000/wiki/index.php?title=Blogtest&action=edit
I get an edit page right away. Nicely filled fields, TextArea1 has my wiki text, etc. No problems. starttime, edittime have nice values. EditToken doesn't exist (because I'm anonymous?)
TextArea1 has value <my text> starttime="20060525184142" edittime="20060525184130" EditToken doesn't exist AutoSummary has a value.
When I do the same from my library, posting the same URL, nothing more, I get a preview page. On this previewpage:
TextArea1 has value "" starttime="" edittime="" EditToken doesn't exist AutoSummary has a value.
What's wrong?
Rotem Liss schreef:
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
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l