Помогите понять, почему код запроса с авторизацией в консоли Laravel работает при использованием Guzzle,
$this->client = new Client();
$response_img = $this->client->request('GET', 'https://frames.optic-dias.ru/login/', ['auth' => ['login', 'password']]);
$body = $response_img->getBody()->getContents();
dd($body);
и выдает следующий результат, html теги есть.
Результат в консоли:
\t\t<!-- Product -->\n
\t<div class="position-relative">\t\t<div class="position-absolute top-0 left-0 pt-3 pl-3">\n
\t\t\t\t\t\t<a href="/home/catalog/?SECTION_ID=11&set_filter=y&arrFilter_18_3864289797=Y" class="badge badge-primary">Новинка</a>\t\t\t\t\t\t\t\t</div>\n
\n
\t\t<a class="img-section" href="/home/catalog/?SECTION_ID=11&ELEMENT_ID=65991&scroll=65991&backurl=%2Fhome%2F">\n
\t\t\t\t\t\t<img class="card-img-top img-sec pt-4 px-3" src="/upload/iblock/e29/mf3l15fgzuhdw8zfullcjwp4v235q46o.jpg" alt="1611_75 5540 54/15 Silhouette Sil_Infinity_View">\n
\t\t\t\t\t</a>\n
\t\t\t\t<div class="position-absolute top-0 right-0 pt-3 pr-3">\n
\t\t\t<button type="button" class="btn btn-sm btn-icon btn-outline-secondary rounded-circle addFav" data-toggle="tooltip" data-placement="top" title="Добавить в избранное" data-id="65991">\n
\t\t\t\t<span class="fas fa-star btn-icon__inner"></span>\n
\t\t\t</button>\n
\t\t</div>\n
\t</div>\n
\t<div class="card-body py-2 px-4">\n
\t\t<div class="mb-2">\n
\t\t\t<span class="d-inline-block text-body mb-1">Silhouette</span>\t\t\t<h4 class="font-size-1 font-weight-normal">\n
\t\t\t\t<a class="text-secondary titl" title="1611_75 5540 54/15 Silhouette Sil_Infinity_View" href="/home/catalog/?SECTION_ID=11&ELEMENT_ID=65991&scroll=65991&backurl=%2Fhome%2F">1611_75 5540 54/15 Silhouette Sil_Infinity_View</a>\n
\t\t\t</h4>\n
\t\t\t<div class="d-block">\n
\n
\n
\n
\t\t\t\t\n
\t\t\t\t\t\t\t\t\t\t\t<span class="font-weight-medium">166,00 €</span>\t\t\t\t\t\t\t\t\t\t\t\n
\t\t\t\t\t\t\t</div>\n
\t\t</div>\n
\t</div>\n
\n
\n
\t\t\t<div class="card-footer border-0 px-2 pt-0 pb-2">\n
\t\t\t\t<button id="add-65991" data-name="1611_75 5540 54/15 Silhouette Sil_Infinity_View" data-quan="0" fn="" data-id="65991" data-brand="Silhouette" type="button" style="position:relative" class="addСart btn btn-sm btn-block btn-dark btn-sm-wide ">В заказ<i class="fas fa-circle text-warning quant" title="Под заказ"></i></button>\n
\t\t\t</div>\n
\n
<!-- End Product -->\t\t\t</div>\n
\t\t\t\t\t\t\t\t\t\t</div>\n
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="js-slide">\n
\t\t\t\t\t\t\t\t\t\t\n
\t<div class="card text-center h-100 w-100 product-item-container"\n
\t\tid="bx_3966226736_65990_c80764dfaf26ca80162484593ec7c29b" data-entity="item">\n
\t\t<!-- Product -->\n
\t<div class="position-relative">\t\t<div class="position-absolute top-0 left-0 pt-3 pl-3">\n
\t\t\t\t\t\t<a href="/home/catalog/?SECTION_ID=11&set_filter=y&arrFilter_18_3864289797=Y" class="badge badge-primary">Новинка</a>\t\t\t\t\t\t\t\t</div>\n
\n
\t\t<a class="img-section" href="/home/catalog/?SECTION_ID=11&ELEMENT_ID=65990&scroll=65990&backurl=%2Fhome%2F">\n
\t\t\t\t\t\t<img class="card-img-top img-sec pt-4 px-3" src="/upload/iblock/ea9/131pz5g52tk28t4rxtqo86ij4kf6iek2.jpg" alt="1611_75 4530 54/15 Silhouette Sil_Infinity_View">\n
\t\t\t\t\t</a>\n
\t\t\t\t<div class="position-absolute top-0 right-0 pt-3 pr-3">\n
\t\t\t<button type="button" class="btn btn-sm btn-icon btn-outline-secondary rounded-circle addFav" data-toggle="tooltip" data-placement="top" title="Добавить в избранное" data-id="65990">\n
\t\t\t\t<span class="fas fa-star btn-icon__inner"></span>\n
\t\t\t</button>\n
\t\t</div>\n
\t</div>\n
\t<div class="card-body py-2 px-4">\n
\t\t<div class="mb-2">\n
\t\t\t<span class="d-inline-block text-body mb-1">Silhouette</span>\t\t\t<h4 class="font-size-1 font-weight-normal">\n
А когда тот же код запускаю в контроллере админки пустой результат и 503 ошибка.
Вот что выдает dd():
dd(
get_class_methods($response_img),
get_class_methods($response_img->getBody()),
get_class_methods($response_img->getBody()->getContents())
);