public function addUrl($url, $options = array()) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); foreach ($options as $option => $value) { curl_setopt($ch, $option, $value); } return $this->addCurl($ch); }