The All New OcUK PS3 User Database With Game & Headset Tracking

FAO Sid

Code:
$referer = "http://us.playstation.com/";
#$url = "http://us.playstation.com/publictrophy/index.htm?onlinename=Thesnipergecko";
$url = "http://us.playstation.com/playstation/psn/profiles/Thesnipergecko";

$ch = curl_init();
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$in = curl_exec($ch);
curl_close($ch);
echo $in;

This is as far as I have got mate:
http://gamercard.happygamers.co.uk/test.php

It doesn't redirect! but it doesn't return a profile either.
 
Hmm so it does look like it needs the referer set correctly to prevent it bouncing, but there must be something else it's sending to that page to make it render...

Using Firebug to check the POST and GET requests when visiting the normal public page there are various commands but this one is most interesting:

http://us.playstation.com/playstation/psn/profile/Thesnipergecko/get_ordered_trophies_data

The source of this file seems to contain the trophy data, though again if you try and access it directly you're bounced to the PSN homepage. Try running that URL through your script and see if anything comes out.

Edit: Firebug thinks http://us.playstation.com/playstation/psn/profiles/Thesnipergecko is the referer for the above URL, so try using that as well in the script.
 
Last edited:
I had a look earlier for other 3rd party sites and Playfire seems to work fine. Though they need the users to manually update on the EU Playstation site, which is better than nothing I suppose.

To update your card, visit http://eu.playstation.com, log in to your account, and press the red "Refresh my PSN Account details" link. This works for all territories, including US PSN IDs.

Not much help, but just letting you know anyway.. :)
 
Back
Top Bottom