Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/Supporting/CommunicationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,6 @@ public function callRestAPI(array $params,
if ($this->curlErrorNumber) {
$this->curlError = curl_error($ch);
}
curl_close($ch);

$this->method = $method;
$this->url = $url;
Expand Down Expand Up @@ -696,21 +695,17 @@ public function accessToContainer(string $url): string
curl_exec($ch);
if (curl_errno($ch) !== 0) {
$errMsg = curl_error($ch);
curl_close($ch);
throw new Exception("Error in creating cookie file. {$errMsg}");
}
curl_close($ch);

// Visit the container URL again.
$ch = $this->_createCurlHandle($url);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile);
$output = curl_exec($ch);
if (curl_errno($ch) !== 0) {
$errMsg = curl_error($ch);
curl_close($ch);
throw new Exception("Error in downloading content of file. {$errMsg}");
}
curl_close($ch);

return base64_encode($output); // Process the data as needed.
}
Expand Down
Loading