Thread:Project:Support desk/createaccount does not result in success with correct token

Hey MediaWiki,

I've been trying to use MediaWiki's createaccount API. I understand that it's a two step process - request the token and then use the token. I have a PHP script that uses curl_exec function and despite the fact that I am receiving a token in step 1 and then using it in step 2, the output from the API is a new token without the user successfully being created. My code looks something like this...

And the command line out (which features the echo and var_dump calls) looks like...

I would have expected the second var_dump to have a result of "success" instead of producing a new token. Any ideas?