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

Request #5463 CURL support
Submitted: 2005-09-20 13:23 UTC
From: fantomas Assigned: avb
Status: Closed Package: HTTP_Request2
PHP Version: 4.4.0 OS: Any
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-20 13:23 UTC] fantomas
Description: ------------ I'd like HTTP_Request to support CURL (or Net_CURL), if that's possible and if it supports all functionality.

Comments

 [2005-11-01 12:16 UTC] avb
This is outside the package's scope. Consider using the Net_Curl package: http://pear.php.net/package/Net_Curl
 [2006-01-17 00:12 UTC] yunosh
I have to agree that this would be a very good idea. And I don't see it being beyond the scope of HTTP_Request. HTTP_Request already utilizes the openssl extension, why shouldn't it use curl as well, if it's available. It could use openssl by default, and curl if it is installed and openssl is not installed or not providing the necessary features (like HTTPS proxies). Packages and applications could then rely on HTTP_Request doing the best thing available, and don't have to develop the same kind of wrapper again and again. I actually plan to drop native curl support in the SOAP package and rely solely on HTTP_Request, but if you really refuse to consider integrating curl support, I would have to rethink this decision.
 [2006-01-17 07:49 UTC] fantomas
I had similar but a bit deeper problem. sockets aren't allowed here and network connections may be only opened using extensions like curl, ftp, imap etc. So, I'd even prefer curl before trying other methods.
 [2006-05-17 19:20 UTC] jausions (Philippe Jausions)
I'm currently toying with the package to try to implement a cURL backend to HTTP_Request while preserving BC. I am not planning on using Net_Curl at the moment because the current implementation doesn't add much to it in this case, and there's no good reason to add an extra layer. With a cURL backend, Net_Curl could even be deprecated in the future. It also seems to me that HTTP_Request is not optimized to upload large files, but that's a different topic. -Philippe
 [2006-06-19 16:42 UTC] yunosh (Jan Schneider)
Did you make any progress already? Btw, you can probably use a lot of code from SOAP/Transport/HTTP.php.
 [2008-10-17 21:12 UTC] avb (Alexey Borzov)
Moving feature requests to HTTP_Request2.
 [2008-11-17 13:32 UTC] avb (Alexey Borzov)
cURL support added in HTTP_Request2 0.1.0