Magento Framework has 2 classes for Curl operations:
\Magento\Framework\HTTP\Adapter\Curl and
\Magento\Framework\HTTP\Client\Curl
What is specific use-case for each as both are capable of doing same job ?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityMagento Framework has 2 classes for Curl operations:
\Magento\Framework\HTTP\Adapter\Curl and
\Magento\Framework\HTTP\Client\Curl
What is specific use-case for each as both are capable of doing same job ?
NOT THE ACTUAL ANSWER
Zend_Http_Client
which has a internal framework - dependency on request type and response.write()
method and read the response using read()
method.get()
and post()
makeRequest()
I would say to implement the code using Client CURL class only.