Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: help
Submitted on May 24, 2014 at 11:17 PM

Section 1 (Text)

<?php


$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);


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");


$data = array(
'creator'   => '1',
'storeId'   => '923',
'items' => '{id:20102192,species:stud,at:keepsake}',
'pType' => '0'
);


$cookies = array(
//Purchase cookie Goes here
	'anx'		=> 'u=AB9F3027-C2AB-40E2-A360-E59CF9654CFC&fv=1400966229454&lv=1400971569539&nv=175&t=-&v=-&p=-&si=-&sn=dfprdzwinky14&od=zwinky.com&op=main.jhtml&ok=-&om=referral&ob=-&oc=-&os=-&w=1366&h=768&cd=24&f=13.0%20r0&g=%7B%22splitTest%22%3A%7B%22scc_count%22%3A%22a%22%7D%7D',
	'anxs'           => 's=396706696&sv=1400966229457&sd=www.zwinky.com&sp=main.jhtml&sk=-&sm=-&sb=-&sc=-&ss=-',
	'JSESSIONID'		=> 'E7AA30177C1015F328FDE55E0660517D',
	'dcDirtyCookie'           => 'xhim71%3D1%3Bxhimitems%3D1',
	'user_num'           => 'iWHCNhoj8%2FscPbqfDNZXeg%3D%3D',
	'user_nme'           => '45e3KDZpJ11HeRmPq%2FskFg%3D%3D',
	'user_info'           => 'jvP1wkYy4bqwkxHmA3oWeY62xoYuHZBh2DJj7PyoN0b+N2Ry6antdPF2ZdQ67ONn5CUEjtK82yO0h0GBUGCqPdBmA5zHj4DZJKPX53jYBD0=',
	'qinfo'           => 'KTUWcSo8cdXrZXM9DMR7Sw=='
	);


curl_setopt($ch, CURLOPT_COOKIE, $cookies);


curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);


$output = curl_exec($ch);
curl_close($ch);
die($output);
$xml = simplexml_load_string($output);
print_r($xml,1);
echo("done\n");
echo($output);
?>