protected function _init($ch) {
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		try {
			// CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
			curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
		} catch (\Exception $e) {
		}
		curl_setopt($ch, CURLOPT_HEADER, true);
		curl_setopt($ch, CURLOPT_HTTPGET, true);
		curl_setopt($ch, CURLOPT_ENCODING, "gzip");
		
		// Trust invalid certificate
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

		// add options injected via constructor
		curl_setopt_array($ch, $this->_options);
		
		return $ch;
	}