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

Request #19515 Custom options for CURL adapter
Submitted: 2012-07-18 18:26 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 27 + 8 = ?

 
 [2012-07-18 18: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 17: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 17:59 UTC] avb (Alexey Borzov)
'common' as in 'working for both Curl and Socket adapters'