`http://:3000/printer_material?printer_id=${selectedPrinterId} `
$host = 'http://localhost:4444/wd/hub';
$userAgent = '.......';
$options = new ChromeOptions();
$options->addArguments(array(
'--user-agent=' . $userAgent
));
$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability(ChromeOptions::CAPABILITY, $options);
$driver = RemoteWebDriver::create($host, $capabilities, 3600000, 3600000);
$driver->get('link....');
$currentUrl = $driver->getCurrentURL();
$headers = get_headers($currentUrl);
$responseCode = substr($headers[0], 9, 3);
echo "Код ответа сервера: " . $responseCode;