$client->request('GET', 'https://fssp.gov.ru/', [
'headers' => [
'Host' => 'fssp.gov.ru',
'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0',
'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Language' => 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
'Accept-Encoding' => 'gzip, deflate, br',
'Connection' => 'keep-alive',
'Upgrade-Insecure-Requests' => '1',
]
]);
echo $response->getStatusCode();
print_r($response->getHeaders());
print_r($response->getHeaders()); что возвращает?
Обсуждают сегодня