Index: branches/RC/core/units/general/helpers/curl_helper.php =================================================================== diff -u -N -r10451 -r11312 --- branches/RC/core/units/general/helpers/curl_helper.php (.../curl_helper.php) (revision 10451) +++ branches/RC/core/units/general/helpers/curl_helper.php (.../curl_helper.php) (revision 11312) @@ -85,6 +85,19 @@ $this->debugMode = $this->Application->isDebugMode(false) && constOn('DBG_CURL'); } + /** + * Reset connection settings (not results) after connection was closed + * + */ + function _resetSettings() + { + $this->timeout = 90; + $this->followLocation = false; + $this->postData = ''; + $this->requestHeaders = Array (); + $this->options = Array (); + } + function setOptions($options_hash) { $this->options = array_merge_recursive2($this->options, $options_hash); @@ -224,8 +237,7 @@ fclose($this->logFilePointer); } - $this->postData = ''; - $this->requestHeaders = Array (); + $this->_resetSettings(); if ($close_connection) { $this->CloseConnection();