mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-25 08:09:07 +00:00
Fix base_url on MultiCurl
This commit is contained in:
@@ -73,7 +73,7 @@ class MultiCurl
|
||||
$query_parameters = $url;
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url, $query_parameters);
|
||||
$curl->setOpt(CURLOPT_CUSTOMREQUEST, 'DELETE');
|
||||
@@ -92,7 +92,7 @@ class MultiCurl
|
||||
*/
|
||||
public function addDownload($url, $mixed_filename)
|
||||
{
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url);
|
||||
|
||||
@@ -156,7 +156,7 @@ class MultiCurl
|
||||
$data = $url;
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url, $data);
|
||||
$curl->setOpt(CURLOPT_CUSTOMREQUEST, 'GET');
|
||||
@@ -179,7 +179,7 @@ class MultiCurl
|
||||
$data = $url;
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url, $data);
|
||||
$curl->setOpt(CURLOPT_CUSTOMREQUEST, 'HEAD');
|
||||
@@ -202,7 +202,7 @@ class MultiCurl
|
||||
$data = $url;
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url, $data);
|
||||
$curl->removeHeader('Content-Length');
|
||||
@@ -226,7 +226,7 @@ class MultiCurl
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
|
||||
if (is_array($data) && empty($data)) {
|
||||
$curl->removeHeader('Content-Length');
|
||||
@@ -259,7 +259,7 @@ class MultiCurl
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
|
||||
if (is_array($data) && empty($data)) {
|
||||
@@ -296,7 +296,7 @@ class MultiCurl
|
||||
$data = $url;
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url);
|
||||
$curl->setOpt(CURLOPT_CUSTOMREQUEST, 'PUT');
|
||||
@@ -323,7 +323,7 @@ class MultiCurl
|
||||
$data = $url;
|
||||
$url = $this->baseUrl;
|
||||
}
|
||||
$curl = new Curl();
|
||||
$curl = new Curl($this->baseUrl);
|
||||
$this->queueHandle($curl);
|
||||
$curl->setUrl($url);
|
||||
$curl->setOpt(CURLOPT_CUSTOMREQUEST, 'SEARCH');
|
||||
|
||||
Reference in New Issue
Block a user