Ciao a tutti sto cercando di fare andare uno script che dovrebbe grabbare i prodotti di android market....
posto il codice:
<?php
//setup a temp file to store cookies
$ckfile = tempnam ("/tmp", "CURLCOOKIE");

//do google authorization
$data = array('accountType' => 'GOOGLE',
'Email' => 'YOUR_ACCOUNT_EMAIL_HERE',
'Passwd' => 'YOUR_ACCOUNT_PW_HERE',
'source' => '',
'service' => 'androiddeveloper');

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.google.com/accounts/ClientLogin");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$output = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);

//grab the AUTH token for later
$auth = '';
if($info['http_code'] == 200) {
preg_match('/Auth=(.*)/', $output, $matches);
if(isset($matches[1])) {
$auth = $matches[1];
}
}

//login to Android Market
//this results in a 302
//I think this is necessary for a cookie to be set
$ch = curl_init ("http://market.android.com/publish?auth=$auth");
curl_setopt($ch, CURLOPT_COOKIEJAR, $ckfile);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
echo $output;
//go to the Developer Console
$ch = curl_init ("http://market.android.com/publish/Home");
curl_setopt($ch, CURLOPT_COOKIEFILE, $ckfile);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
echo $output;
........
ma quando lo lancio mi da il seguente output

Moved Temporarily
The document has moved here.
Moved Temporarily
The document has moved here.

Array
(
[0] => 0
[1] => 1
[2] => Array
(
[0] => java.util.ArrayList/3821976829
)

[3] => 0
[4] => 5
)
Ho ipotizzato che il problema è nelle url di android market che sono sbagliate....
Qualcuno sa indicarmi una soluzione..?
Vi ringrazio anticipatamente
Ciao