Changeset 9049
- Timestamp:
- 05/19/08 13:18:01 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfWebBrowserPlugin/lib/sfCurlAdapter.class.php
r8592 r9049 61 61 curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, false); 62 62 curl_setopt($this->curl, CURLOPT_FRESH_CONNECT, true); 63 63 64 if(isset($this->options['follow_location'])) 65 { 66 curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, (bool) $this->options['follow_location']); 67 } 68 64 69 // activate ssl certificate verification? 70 71 if (isset($this->options['ssl_verify_host'])) 72 { 73 curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, (bool) $this->options['ssl_verify_host']); 74 } 65 75 if (isset($this->options['ssl_verify'])) 66 76 { … … 74 84 } 75 85 76 if (isset($this->options['verbose_log']))86 if(isset($this->options['verbose_log'])) 77 87 { 78 88 $log_file = sfConfig::get('sf_log_dir').'/sfCurlAdapter_verbose.log'; … … 105 115 $request_headers = explode("\r\n", $browser->prepareHeaders($m_headers)); 106 116 curl_setopt($this->curl, CURLOPT_HTTPHEADER, $request_headers); 107 117 108 118 // encoding support 109 119 if(isset($headers['Accept-Encoding']))