php curl issue not updating
<p>I have used curl to extract data as follows</p>

<p><code>
 $ch = curl_init();</p>

<pre><code> curl_setopt($ch, CURLOPT_URL, "http://sitename.com");
 curl_setopt($ch, CURLOPT_HEADER, 0);
 curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
 curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookiefilename.txt');
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host:http://sitename.com'));
 $output = curl_exec($ch);
 curl_close($ch);
 $output = json_decode($output);
 cache_set($tableid,$output,'cache',strtotime("midnight +1 day +1 hour"));
</code></pre>

<p></code></p>

<p>However i am not getting anything in the $output object. </p>
