public function download($requests, $options = array()) {
        $options['CURLOPT_BINARYTRANSFER'] = 1;
        $options['RETURNTRANSFER'] = false;
        return $this->multi($requests, $options);
    }
public function download($requests, $options = array()) {
        $options['CURLOPT_BINARYTRANSFER'] = 1;
        $options['RETURNTRANSFER'] = false;
        return $this->multi($requests, $options);
    }
public function download ( $ requests , $ options = array ( ) ) { $ options [ 'CURLOPT_BINARYTRANSFER' ] = 1 ; $ options [ 'RETURNTRANSFER' ] = false ; return $ this -> multi ( $ requests , $ options ) ; }
Download multiple files in parallel

Calls {@link multi()} with specific download headers

<code>
$c = new \dcai\curl;
$c->download(array(
array('url'=>'http://localhost/', 'file'=>fopen('a', 'wb')),
array('url'=>'http://localhost/20/', 'file'=>fopen('b', 'wb'))
));
</code>

@param array $requests An array of files to request
@param array $options An array of options to set
@return array An array of results
Download multiple files in parallel