need a php coder

asdf221

Registered Member
Joined
Mar 18, 2008
Messages
60
Reaction score
3
I need a simple script i need made that allow me to login to a site
 
need it to login to nba.com

................
 
PHP:
<?php
$c = curl_init();

curl_setopt($c, CURLOPT_URL, 'https://audience.nba.com/services/msib/flow/login?_flowExecutionKey=e1s2');//connect
curl_setopt($c, CURLOPT_HEADER, 1);
curl_setopt($c, CURLOPT_VERBOSE, 1);
curl_setopt($c, CURLOPT_RETURNTRANSFER,1);
curl_setopt($c, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686;pl; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3');
curl_setopt($c, CURLOPT_ENCODING, 'gzip');
curl_setopt($c, CURLOPT_ENCODING, 'deflate');
curl_setopt($c, CURLOPT_ENCODING, '');
curl_setopt($c, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($c, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, 'loginId=mylogin&password=mypasswd&_eventId_submit.x=37&_eventId_submit.y=9'); //data to send
curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
$page = curl_exec($c);
?>

regards
 
PHP:
<?php
$b = curl_init();
curl_setopt($b, CURLOPT_URL, 'http://premium.nba.com/pr/leaguepass/app/tk/index.jhtml/gameId=0020800021');//connect to next site
curl_setopt($b, CURLOPT_HEADER, 1);
curl_setopt($b, CURLOPT_VERBOSE, 1);
curl_setopt($b, CURLOPT_RETURNTRANSFER,1);
curl_setopt($b, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686;pl; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3');
curl_setopt($b, CURLOPT_ENCODING, 'gzip');
curl_setopt($b, CURLOPT_ENCODING, 'deflate');
curl_setopt($b, CURLOPT_ENCODING, '');
//curl_setopt($b, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($b, CURLOPT_COOKIEFILE, 'cookies.txt');//use cookie from first curl
curl_setopt($b, CURLOPT_FOLLOWLOCATION, 1);
$page1 = curl_exec($b);
?>

regards

ps. if my post was useful click THANKS :)
 
Last edited:
It does not work, its not getting all the cookies that it needs to open webpages

If anyone can figure it out I will pay them
 
send me PM with login detalis - i will see whats wrong

were you able to get it working?
i sent you a msg with the detail


also if anyone else can get it working let me know how much you would charge
 
After login where i must click to go to :??


Its a hidden link

I just need a script that will echo the source out of that link, then I can take over from there
 
If you need help be more specific!
Nobody is clairvoyant here...
Tell me where exactly is this link or what exactly you expect from script

regards
 
Code:
HTTP Status 404 - /pr/leaguepass/app/tk/index.jhtml/gameId=0020800021

type Status report

message /pr/leaguepass/app/tk/index.jhtml/gameId=0020800021

description The requested resource (/pr/leaguepass/app/tk/index.jhtml/gameId=0020800021) is not available.
Apache Tomcat/5.5.26

This is always in http://premium.nba.com/pr/leaguepass/app/tk/index.jhtml/gameId=0020800021 (When i'm using to login browser and php script to)
Do you have the same when you are trying open this site in browser?
 
hi

we are group of web programming consultant. we are expert in php. contact me through pm.
 
Code:
HTTP Status 404 - /pr/leaguepass/app/tk/index.jhtml/gameId=0020800021

type Status report

message /pr/leaguepass/app/tk/index.jhtml/gameId=0020800021

description The requested resource (/pr/leaguepass/app/tk/index.jhtml/gameId=0020800021) is not available.
Apache Tomcat/5.5.26

This is always in http://premium.nba.com/pr/leaguepass/app/tk/index.jhtml/gameId=0020800021 (When i'm using to login browser and php script to)
Do you have the same when you are trying open this site in browser?

that link is dead now

try this link

http://premium.nba.com/pr/leaguepass/app/tk/index.jhtml?gameId=0020800020

thanks :)
 
still dead :) but here is code
PHP:
<?


$c = curl_init();
curl_setopt($c, CURLOPT_URL, 'https://audience.nba.com/services/msib/flow/lpb-authorizer');//connect
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($c, CURLOPT_HEADER, 1);
curl_setopt($c, CURLOPT_RETURNTRANSFER,1);
curl_setopt($c, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686;pl; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3');
curl_setopt($c, CURLOPT_ENCODING, 'gzip');
curl_setopt($c, CURLOPT_ENCODING, 'deflate');
curl_setopt($c, CURLOPT_ENCODING, '');
curl_setopt($c, CURLOPT_REFERER, "https://audience.nba.com/services/msib/flow/billingServiceAuthorization?serviceCode=billing&privileges=lpb^lpbnb&url=http%3A%2F%2Fpremium.nba.com%2Fpr%2Fleaguepass%2Fapp%2Ftk%2Findex.jhtml%2FgameId%3D0020800019");
curl_setopt($c, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($c, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, 'loginId=HERE PUT YOUR LOGIN&password=HERE PUT YOUR PASSWD&privileges=lpb%5Elpbnb&serviceCode=billing&url=HERE PUT PAGE'); //data to send
curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
$page = curl_exec($c);

$d = curl_init();
curl_setopt($d, CURLOPT_URL, 'http://premium.nba.com/pr/leaguepass/app/tk/index.jhtml/gameId=0020800020');//THIS IS PAGE
curl_setopt($d, CURLOPT_HEADER, 1);
curl_setopt($d, CURLOPT_VERBOSE, 1);
curl_setopt($d, CURLOPT_RETURNTRANSFER,1);
curl_setopt($d, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686;pl; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3');
curl_setopt($d, CURLOPT_ENCODING, 'gzip');
curl_setopt($d, CURLOPT_ENCODING, 'deflate');
curl_setopt($d, CURLOPT_ENCODING, '');
//curl_setopt($d, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($d, CURLOPT_COOKIEFILE, 'cookies.txt');//use cookie from first curl
curl_setopt($d, CURLOPT_FOLLOWLOCATION, 1);
$page2 = curl_exec($d);


echo $page2;
?>

regards
 
thanks!

its outputting the xml data along with some other data too

when i try this url

http://premium.nba.com/pr/leaguepass/app/tk/index.jhtml?gameId=0020800048


what i am trying to do is parse out the first rtmp link

rtmp%3A%2F%2Fnba-lp-flod.cdn.turner.com%2Fondemand%2Fio%2Fnba%2Fbig%2Fleaguepass%2F2008%2F11%2F04%2F0020800048_800.flv%3Fauth%3DdaEcvc5dZbtcFcddtdJa7a2bucHcha6bSbj-bjflc7-vga-XMQXZ%26aifp%3D1234%26slist%3Dio%2Fnba%2Fbig%2Fleaguepass%2F2008%2F11%2F04%2F0020800048_800


thanks :)
 
Back
Top