Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.1

Request #19515 Custom options for CURL adapter
Submitted: 2012-07-18 13:26 UTC Modified: 2014-01-12 12:59 UTC
From: vovka Assigned: avb
Status: Closed Package: HTTP_Request2 (version 2.1.1)
PHP Version: 5.3.14 OS: Centos
Roadmaps: (Not assigned)    
Subscription  


 [2012-07-18 13:26 UTC] vovka (Volodymyr Chukh)
Description: ------------ At the moment it is not possible add custom options for CURL adapter. Please add capability to adding custom options for CURL adapter. Like CURLOPT_INTERFACE, etc. For example this capability using Zend: $config = array( "adapter" => "Zend_Http_Client_Adapter_Curl", "curloptions" => array(CURLOPT_INTERFACE=>"192.168.0.1") ); $client = new Zend_Gdata_HttpClient(null, $config);

Comments

 [2014-01-12 12:58 UTC] avb (Alexey Borzov)
-Status: Open +Status: Closed -Assigned To: +Assigned To: avb
Implemented in Git. https://github.com/pear/HTTP_Request2/commit/e20615ec10b179b285e9bb72a7331c2857f74131 Instead of allowing custom options for Curl adapter, I implemented the common config option 'local_ip' for specifying local interface to bind to.
 [2014-01-12 12:59 UTC] avb (Alexey Borzov)
'common' as in 'working for both Curl and Socket adapters'