I am trying to to create the curl request but it is not working. It is giving the error
Uncaught Error: Class 'Custom\Rma\Helper\Varien_Http_Adapter_Curl' not found
Code
$header = array(
"cache-control: no-cache",
"content-type: application/json"
);
$request = json_encode($sfData);
$url = "url_here";
$options = array(
CURLOPT_HTTPHEADER => $header,
CURLOPT_POSTFIELDS => $request
);
$curl = new Varien_Http_Adapter_Curl();
$curl->setOptions($options);
$curl->write(Zend_Http_Client::GET, $url, '1.0');
$response = $curl->read();
$err = $curl->error();
if ($err) {
return false;
} else {
return true;
}
$curl->close();
As i want to change my code according to the ECG so i have converted the PHP curl functions to above code. And this code is not working.