У меня есть контроллер, который отправляет curl на другой контроллер, но я получаю ошибку 302.
это мой curl в magento2
try{
$_str_base_url = $urlInterface->getUrl('magento_ebayautopurchase/EbayApiScanningData/EbayData');
//if the method is get
$this->_curl->get($_str_base_url);
//response will contain the output in form of JSON string
$response = $this->_curl->getBody();
var_dump('tested');
var_dump($response);
}
catch (\Exception $e) {
var_dump('catch');
}