[Mediawiki-api] how to set cookie properly when I using login api?