How to use curl in Magento 2

We will be learning here, how one can use curl in Magento 2. At first, you need to create an instance of “\Magento\Framework\HTTP\Client\Curl” in the Constructor as shown below: /** * @var \Magento\Framework\HTTP\Client\Curl */ protected $_curl; /** * Data constructor. * * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Framework\HTTP\Client\Curl $curl */ public function…
Read More