Reply to MySpace Auto Bulletin???

Your name:

Reply:


Posted by jens.wittmann on 01/30/08 10:59

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/#comments

The Example looks like this:

<?php

// 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',

'/
wEPDwUJNTMzMjE3MzI5ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUwY3RsMDAkTWFpbiRTcGxhc2hEaXNwbGF5JGN0bDAwJFJlbWVtYmVyX0NoZWNrYm94BTBjdGwwMCRNYWluJFNwbGFzaERpc3Bs

YXkkY3RsMDAkTG9naW5fSW1hZ2VCdXR0b24=');
$http->addParam('NextPage', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Email_Textbox',
urldecode('testperson'));
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Password_Textbox',
'*****');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Remember_Checkbox',
'');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$nexturl', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$apikey', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$ContainerPage', '');
$http->addParam('ctl00$Main$SplashDisplay$ctl00$Login_ImageButton',
'');

// 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;

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация