MySpace Auto Bulletin???

MySpace Auto Bulletin???

am 30.01.2008 11:59:21 von jens.wittmann

Hi,
I want to write a script to do the following:

- login to MySpace with given Username and Password
- post a Bulletin with the given Text

For making a Connection to MySpace i want to use this Class:
http://www.phpfour.com/blog/2008/01/20/php-http-class/#comme nts

The Example looks like this:


// Include the Http Class
include_once('class.http.php');

// Instantiate it
$http = new Http();

// Let's not use cURL
$http->useCurl(false);

// POST method
$http->setMethod('POST');

// POST parameters
$http->addParam('__VIEWSTATE',

'/
wEPDwUJNTMzMjE3MzI5ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS 2V5X18WAgUwY3RsMDAkTWFpbiRTcGxhc2hEaXNwbGF5JGN0bDAwJFJlbWVtY mVyX0NoZWNrYm94BTBjdGwwMCRNYWluJFNwbGFzaERpc3Bs

YXkkY3RsMDAkTG9naW5fSW1hZ2VCdXR0b24=');
$http->addParam('NextPage', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Email_Textbo x',
urldecode('testperson'));
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Password_Tex tbox',
'*****');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Remember_Che ckbox',
'');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$nexturl', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$apikey', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$ContainerPag e', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Login_ImageB utton',
'');

// Referrer
$http->setReferrer('http://****/login.php');

// Get basecamp dashboard (HTTPS)
$http->execute('http://secure.myspace.com/index.cfm?
fuseaction=login.process');

// Show result page or error if occurred
echo ($http->error) ? $http->error : $http->result;

?>