function getCurlBaseOpts() { //I chose to return this as a function so it's easy to override. //TODO: probably this for all the junk I currently have stashed in the constructor. //...maybe. $path = $this->transaction_option('path'); if (!$path) { $path = ''; } $opts = array(CURLOPT_URL => $this->getProcessorUrl() . $path, CURLOPT_USERAGENT => WmfFramework::getUserAgent(), CURLOPT_HEADER => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_TIMEOUT => self::getGlobal('Timeout'), CURLOPT_FOLLOWLOCATION => 0, CURLOPT_SSL_VERIFYPEER => 1, CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_FORBID_REUSE => true, CURLOPT_POST => 1, CURLOPT_VERBOSE => true); return $opts; }