Example #1
0
 static function downloadPackage($url)
 {
     $curl = new Swoole\Client\CURL();
     $curl->setCredentials('admin', 'aiQuee7e');
     return $curl->get($url);
 }
Example #2
0
 function post($data)
 {
     $this->_curl->post($this->config['url'], $data);
 }