connect to pizza hut validator using CURL
Hi - i'm trying to connect to the pizza hut postcode validator using CURL but it doesn't seem to be working. I have a feeling it has something to do with the headers. Any ideas?
I get the result:
$url = "http://delivery.pizzahut.co.uk/?userpostcode=CM145PP&x=12&y=17";
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Connection: keep-alive", "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3"));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
$result = curl_exec($ch);
Guaranteed red hot to your door - We're experiencing problems with our site so please come back soon.