Skip to content
Open
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
11 changes: 9 additions & 2 deletions libraries/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function set_cookies($params = array())
{
if (is_array($params))
{
$params = http_build_query($params, NULL, '&');
$params = http_build_query($params, NULL, ';');
}

$this->option(CURLOPT_COOKIE, $params);
Expand Down Expand Up @@ -317,9 +317,16 @@ public function execute()
}

$this->options();


// Temp close session to prevent conflicting sessions
session_write_close();

// Execute the request & and hide all output
$this->response = curl_exec($this->session);

// Restart session
session_start();

$this->info = curl_getinfo($this->session);

// Request failed
Expand Down