[Mediawiki-l] Getting an edit token for faux request

Adam Meyer meyer7 at mindspring.com
Sat Jun 18 14:21:45 UTC 2011


I need an edit token for a faux request (fauxRequest) I am doing. I thought I could get a token like so:

global $wgRequest;
$token = $wgRequest->getSessionData( 'wsEditToken' );

But it just reports back "badtoken: Invalid token"


What is the proper way to ger an edit token for a faux request

Thanks,
-Adam


More information about the MediaWiki-l mailing list