Questo script, che in locale reinvia tutte le variabili in post,
con paypal restituisce un impietoso
INVALID

codice:
$data = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$data .= "&$key=$value";

$sock = fsockopen("www.sandbox.paypal.com", 80, $errno, $errstr, 30); 
if (!$sock) die("$errstr ($errno)\n"); 
fwrite($sock, "POST /cgi-bin/webscr HTTP/1.0\r\n"); 
fwrite($sock, "Host: www.sandbox.paypal.com\r\n"); 
fwrite($sock, "Content-type: application/x-www-form-urlencoded;\r\n"); 
fwrite($sock, "Content-length: " . strlen($data) ."&\r\n"); 
fwrite($sock, "Accept: */*\r\n"); 
fwrite($sock, "\r\n"); 
fwrite($sock, "$data\r\n"); 
fwrite($sock, "\r\n"); 
$headers = ""; 
while ($str = trim(fgets($sock, 4096))) 
$headers .= "$str\n"; 

echo "\n"; 

$body = ""; 
while (!feof($sock)) 
$body .= fgets($sock, 4096); 

fclose($sock); 
echo $body;
Possibile che nessuno si sia mai trovato a che fare con paypal?