On Mon, Dec 22, 2008 at 12:23 AM, Luiz A Brandao Jr <fromv...@gmail.com> wrote:
> Hello,
>
> What's the reason to use Zend_Http_Client over the cURL extension?
> Do you know how Zend_Http_Client performs comparatively to curl?
>
> Thank you,
>
> Luiz

If performance is your #1 priority over maintainable code then it's
probably cURL. Just benchmark it.

However the advantage you gain by using the Zend class is a very easy
API, easy customization (through options and by extending the API),
etc. pp.. You can't really compare the two. Point taken, you can use
both to get the job done, but Zend_Http_Client provides a lot of
convenience which you don't get with pure PHP/cURL -- as usually when
you turn to a framework.

Also, by default Zend_Http_Client uses sockets -- which are
omnipresent in 99% of all PHP installs, whereas cURL is not always
around.

Till

Reply via email to