What is the difference between Magento\Framework\HTTP\Adapter\Curl and Magento\Framework\HTTP\Client\Curl?

I came across two methods for making a CURL call in Magento 2.


Paypal uses the First one as a factory Method to make its NVP cUrl calls and the later one is used by Magento’s setup model PackagesAuth class. A few blogs also recommend to use the second one to make our custom cUrl calls.

Which is the recommended method to use?

What is the Difference between these two methods?

The difference is that Magento\Framework\HTTP\Adapter\Curl uses Zend Framework 1, and Magento\Framework\HTTP\Client\Curl does not.