User talk:Bcoughlan/Login with curl

What is createPage() coming from?

checkForErrors($xml) is missing, too.

Changes done to the Login with curl code

edit

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.

You need to trim the data response, otherwise simplexml gets angry and complains

edit

I tried to apply this code to a drupal CMS to make the simultaneous login for each CMS I arrive in Success status with the response : "<login result="Success" ....", but if I refresh in an other tab my MediaWiki I'm not logged in. Any ideas? Can the cookie setting to be the problem?

Outdated

edit

This won't work now unless you fix several points. Use as a draft, at most. I'm still trying it with MediaWiki 1.23.2 .

2014/08/17

Forgive my newbness but...how does one use the sections of this code? Does it go into a file? Where are comments? x*D I know "code explains itself" is a thing but with a little input I'll be willing to teach another new somewhere to pay it forward. :D

Return to the user page of "Bcoughlan/Login with curl".