Thread:Project:Support desk/createaccount does not result in success with correct token/reply (2)

So I got the script working. My mistake was not correctly passing cookies. I have fully written out my script, complete with error logging (see below). The key was CURLOPT_COOKIE (which is being invoked in the setCookies function). Basically, I wasn't sending cookies. Also, this particular script uses emails as usernames so I needed to make the @ symbol a legal character via the $wgInvalidUsernameCharacters in DefaultSettings.php.

Special thanks to Roan Kattouw for helping me get this far.

Poder - I wouldn't be surprised if CURLOPT_POSTFIELDS would work as well. I may modify this script in the future so my $params variables don't stretch across the entire screen.