<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.zwinky.com/zwinky-world/Checkout.jhtml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0");
//items Array
$data = array(
'storeId' => '923',
'items' => '{id:20102192,species:stud,at:keepsake}',
'pType' => '0'
);
$cookies = array(
//Purchase cookie Goes here
'anx' => ''
);
curl_setopt ($ch, CURLOPT_COOKIE,
//DIRTYCOOKIES GOES HERE
""
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$output = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($output);
print_r($xml,1);
echo("done\n");
echo($output);
?>