diff --git a/library/Requests/Transport/cURL.php b/library/Requests/Transport/cURL.php index 21b031e08..1ed4a8f07 100755 --- a/library/Requests/Transport/cURL.php +++ b/library/Requests/Transport/cURL.php @@ -85,6 +85,13 @@ public function __construct() { */ public function request($url, $headers = array(), $data = array(), $options = array()) { $this->setup_handle($url, $headers, $data, $options); + + if (isset($options['proxy'])) { + curl_setopt($this->fp, CURLOPT_PROXY, $options['proxy']); + } + if (isset($options['proxy_type'])) { + curl_setopt($this->fp, CURLOPT_PROXYTYPE, $options['proxy_type']); + } $options['hooks']->dispatch('curl.before_send', array(&$this->fp));