PHP CURL to CodeIgniter controller
You could use my Curl library:
$this->load->library('curl');$result = $this->curl->simple_get('http://example.com/');var_dump($result);
Try adding this into options
$ch = curl_init();curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
Edit 1
add this
curl_setopt($ch, CURLOPT_HEADER, 1);// and post the result of $result