Выводит страницу с не авторизованного аккаунта
$login = $client -> request('POST','https://art.global24.ua/multiwallet/login',[
'json' => [
'login' => 'login',
'loginType' => 'text',
'password' => 'password'
]
]);
$cookie1 = $login->getHeaderLine('cf-ray');
$cookie2 = $login->getHeaderLine('cf-request-id');
$cookie3 = $login->getHeaderLine('cf-cache-status');
$cookie4 = $login->getHeaderLine('access-control-allow-headers');
$cookie5 = $login->getHeaderLine('access-control-allow-methods');
$cookie6 = $login->getHeaderLine('access-control-allow-origin');
$cookie7 = $login->getHeaderLine('access-control-expose-headers');
$cookie8 = $login->getHeaderLine('access-control-max-age');
$cookie9 = $login->getHeaderLine('alt-svc');
$cookie10 = $login->getHeaderLine('content-encoding');
$cookie11 = $login->getHeaderLine('date');
$cookie12 = $login->getHeaderLine('expect-ct');
$cookie13 = $login->getHeaderLine('nel');
$cookie14 = $login->getHeaderLine('report-to');
$cookie15 = $login->getHeaderLine('server');
$cookie16 = $login->getHeaderLine('strict-transport-security');
$cookie17 = $login->getHeaderLine('x-content-type-options');
//var_dump($cookie);
//print_r($login->getStatuscode());
$discounts = $client -> request('GET','https://global24.ua/profile',[
'headers' => [
'cf-ray' => $cookie1,
'cf-request-id' => $cookie2,
'cf-cache-status' => $cookie3,
'access-control-allow-headers' => $cookie4,
'access-control-allow-methods' => $cookie5,
'access-control-allow-origin' => $cookie6,
'access-control-expose-headers' => $cookie7,
'access-control-max-age' => $cookie8,
'alt-svc' => $cookie9,
'content-encoding' => $cookie10,
'date' => $cookie11,
'expect-ct' => $cookie12,
'nel' => $cookie13,
'report-to' => $cookie14,
'server' => $cookie15,
'strict-transport-security' => $cookie16,
'x-content-type-options' => $cookie17,
],
/*'debug' => true*/ //
]);
$body = $discounts -> getBody() -> getContents();
echo $body;