Edit report at https://bugs.php.net/bug.php?id=62906&edit=1

 ID:                 62906
 Updated by:         larue...@php.net
 Reported by:        niki at gorchilov dot com
 Summary:            [feature request] add support for CURLOPT_*SOCK*
                     options
 Status:             Open
 Type:               Feature/Change Request
 Package:            cURL related
 Operating System:   All
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        pierrick
 Block user comment: N
 Private report:     N

 New Comment:

what do you think? maybe expose some new constants?


Previous Comments:
------------------------------------------------------------------------
[2012-08-23 15:02:25] niki at gorchilov dot com

Description:
------------
libcurl has 6 callback options that are missing in PHP bindings, but give the 
user 
great control over the underlying socket:
- CURLOPT_SOCKOPTFUNCTION
- CURLOPT_SOCKOPTDATA
- CURLOPT_OPENSOCKETFUNCTION
- CURLOPT_OPENSOCKETDATA
- CURLOPT_CLOSESOCKETFUNCTION
- CURLOPT_CLOSESOCKETDATA

Without support for these options, developers can't set socket bindings, 
options 
and marks on connections done via cURL.

That is a great limitation for serious network applications written in PHP. 
Here's 
one real example:
http://stackoverflow.com/questions/12080550/tproxy-with-libcurl-or-http-streams-
under-php

Full description of these options is available at:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTSOCKOPTFUNCTION



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62906&edit=1

Reply via email to