Cannot edit pages

Help
Hoazl
2010-05-06
2013-05-13
  • Hoazl
    Hoazl
    2010-05-06

    Hello,
    When using the DotNetWikiBot, I'm unable to edit the pages of the wiki (in this case, http://pokewiki.de/). It somehow seems not to keep the login data, because it says "I do not have the permissions to edit this page". In fact, I am allowed to do this - I can edit the same page, logged in as the bot user, with Firefox without any problems. So after one hour of debugging my guess is that the login somehow doesn't work - afaik you query the original webpage for login credentials (Special:UserLogin). But the API also provides a method to login - see http://www.mediawiki.org/wiki/API:Login. I don't know for sure if this is the error (I'll post code if neccessary.). And maybe the credentials differ?

    I hope you can help me :)
    - Hoazl

     
  • CodeDriller
    CodeDriller
    2010-05-10

    Please, try adding www. prefix before domain name like that:

    Site site = new Site("http://www.pokewiki.de", "YourLogin", "YourPassword");

     
  • Hoazl
    Hoazl
    2010-05-10

    Now it works!
    Thank you very much!