OK, I finally figured this out. Somehow I was getting the ampersand separator character in the URL being converted to the special character equivalent & and the URL looked like: index.php?title=myNewPage&action=submit instead of properly: index.php?title=myNewPage&action=submit
Once I got rid of that encoding, the action is now functioning.
Sorry for the false alarm. Everything seems to be working as documented.
--Hiram
Carlos Ramirez wrote:
I use the MediaWiki Perl module and it works great - http://search.cpan.org/~spectrum/MediaWiki-1.11/lib/MediaWiki.pm
-Carlos
Hiram Clawson wrote:
Good Afternoon MediaWiki Fans:
Before I pull all of my hair out here, can anyone tell me what I am missing in this procedure. Am I following out of date documents here or what ?
I'm trying to write a robot to automatically add pages to a MediaWiki. Something along the lines of: http://meta.wikimedia.org/wiki/MediaWiki_Bulk_Page_Creator
I've been following the proper use of the save edit parameters at: http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php
And sending the appropriate POST request to the wiki with a valid wpEditToken obtained from the wiki with an action=edit call first. I'm watching my POST operation go out OK from my end, but the only answer I get back from the wiki is "this page does not exist, would you like to edit it"
Is it clear to the wiki when it sees an incoming POST request with the URL action=submit: index.php?title=myNewPage&action=submit That this is the result of the submit button "Save page" from the editform on the edit page ? Is it just the actual POST variables in the message that direct the save activity at the wiki ?
Anyone have any good pointers to recent documents about robot writing ?
My hair will appreciate your assistance,
--Hiram
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l