Sorry went to
Westfest over weekend and to sisters .
I would decompile the swf to be sure but its probably no longer safe. I noticed in there new mobile app they call MobileService.StartMonothony or something like that too but didnt look at its data yet. The return will be amf data format:
(you need an account to see links)
The header problem could be that you are sending this incorrectly
('Content-Type', 'text/html; charset=UTF-8'),
You should be sending content type as
application/x-amf
this post from a long time ago might also intrest you but it is mostly repeating whats said in the amf file format specification.
(you need an account to see links)
Pyamf is still easier!
PHP Code:
from classes.NeoAccount import NeoAccount
pyamfhandler = RemotingService('http://www.neopets.com/amfphp/gateway.php')
neouser = "" #Neopets username
neopass = "" #Neopets password
theacc = NeoAccount(neouser,neopass,"")
theret = theacc.login() #Login here
pyamfhandler.opener =theacc.opener.open #Tell pyamf to use our wrappers opener cookie to login
CustomPetService= pyamfhandler.getService ("CustomPetService")
theret = CustomPetService.getUserData("raredaredevil",)
print theret
Returns:
{'pet_list': [{'slots': [{'id': 1, 'label': u'Active Configuration'},
{'id': 2, 'label': u'Preset #1'}, {'id': 3, 'label': u'Preset #2'}],
'active_slot': 1, 'name': u'Badgerfeet'},
{'slots': [{'id': 1, 'label': u'Active Configuration'},
{'id': 2, 'label': u'Preset #1'},
{'id': 3, 'label': u'Preset #2'}],
'active_slot': 1, 'name': u'teoteoteo'}],
'active_pet': None}
So you could say
PHP Code:
CustomPetService= pyamfhandler.getService ("CustomPetService")
theret = CustomPetService.getUserData("raredaredevil",)
for pet in theret['pet_list']:
print pet['name']
Returns:
Badgerfeet
teoteoteo
Much easier!