<?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);
?>
<?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);
?>
send me PM with login detalis - i will see whats wrong
send me PM with login detalis - i will see whats wrong
??
After login where i must click to go to :??
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
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?
<?
$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;
?>