User talk:Bcoughlan/Login with curl

What is createPage coming from?

checkForErrors($xml) is missing, too.

Changes done to the Login with curl code
I tried executing your code & found it necessary to make a few changes to it.

1) createPage, checkForErrors, $snoopy are unncessary.

2) The user agent field was missing the curl options.