Re: Re: [PEPr] -1 for XML::XML_RPC2

From: Date: Thu, 12 May 2005 17:10:34 +0000
Subject: Re: Re: [PEPr] -1 for XML::XML_RPC2
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-37589@lists.php.net to get a copy of this message
On 5/11/05, Sergio Carvalho <sergio.carvalho@portugalmail.com> wrote: > Helgi Þormar wrote: > > > > First using CURL really defeats the purpose of trying to create > > something that could be used by future PEAR versions (given they need > > xml rpc stuff) since CURL isn't installed by default and I really doubt > > anyone wants to make people have CURL installed to use PEAR, anyway that > > can be resolved with writing a backend. > > You either: > 1) Use cURL > 2) Write your own 'lightweight curl' > 3) Use the xmlrpc extension > > I opted for 1). Another backend should go for 3). 2) isn't really very > elegant. Why not HTTP_Request? It's in PEAR, after all, and it the PEAR standard for making HTTP requests. It also allows people to use the package who don't have / don't want curl. If I've completely missed something here, as I've not reviewed the code, let me know, but IMHO all use of curl could and should be done through HTTP_Request. Making a curl backend to HTTP_Request would be a better solution than not using it entirely. Of course, is also seems that a new backend could be written for your package to use HTTP_Request rather than curl. This is a good thing and I'd personally like to see it in the package. -- Justin Patrin

« previous php.pear.dev (#37589) next »