Please provide me any solution to call makeRequest() protected function in controller without using extends in class.
File path : - Magento/Framework/HTTP/Client/Curl.php
Solved! Go to Solution.
Hi there,
We believe it's impossible to accomplish it without extending the class.
If you need the `PUT` method, you can use a method from the 'write' class. `\Magento\Framework\HTTP\Adapter\Curl` class. But we'd recommend using the class `\Magento\Framework\HTTP\ZendClient`, which supports all this (see the method - `Zend_Http_Client::request($method)`), as Zend Client tries to apply 'Curl' adapter at requests at the first place (if it is possible).
---------------------------------------------------------
If you've found one of our answers useful, please give 'Kudos' or 'Accept as Solution'.
Hi there,
We believe it's impossible to accomplish it without extending the class.
If you need the `PUT` method, you can use a method from the 'write' class. `\Magento\Framework\HTTP\Adapter\Curl` class. But we'd recommend using the class `\Magento\Framework\HTTP\ZendClient`, which supports all this (see the method - `Zend_Http_Client::request($method)`), as Zend Client tries to apply 'Curl' adapter at requests at the first place (if it is possible).
---------------------------------------------------------
If you've found one of our answers useful, please give 'Kudos' or 'Accept as Solution'.