[Mediawiki-l] automatically inserting content into the wiki
Platonides
Platonides at gmail.com
Wed Aug 29 17:53:11 UTC 2007
Johannes Perl wrote:
> hi,
>
> I'm trying to write a programm with java to insert content automatically
> into the wiki.
> I set the POST variables and the submit button value and then send the
> request to the server. Now comes the problem that MediaWiki doesn't let me
> post anything.
> The page returned is only the preview page, but exactly with the content I
> wanted to post.
>
> So I've got the question whether there are any special variables to be set.
> Looking at the source code I saw that there are some hidden fields.
> Do they all have to be set to get this posted?
> Or are there any other problems or things I have to consider?
>
> Thanks for any help or links.
> Johannes
Send wpSave
You need wpEditToken. It can be hardcoded if the program edits from an ip.
If the page may exist or may have been deleted, you will need wpEdittime
and wpStarttime respectively.
More information about the MediaWiki-l
mailing list