sprintf('Basic %s', base64_encode($_POST['username'] .':'. $_POST['password'])) ); } $response = wp_safe_remote_head($_POST['url'], $args); $status = wp_remote_retrieve_response_code($response); $dictionary = wp_remote_retrieve_headers($response); $responseHeaders = $dictionary ? $dictionary->getAll() : array(); if ($status !== 200) { ?>

:

$v) { $k = strtolower($k); $found = in_array($k, $reportOnly); $v = is_array($v) ? join(", ", $v) : $v; ?> >
$v) { if (!array_key_exists($k, $responseHeaders) && !in_array($k, $exclude) && !(in_array($k, $special) && array_key_exists($k . '-report-only', $responseHeaders) )) { $missing[$k] = isset($categories[$v[2]]) ? $categories[$v[2]] : 'Other'; } } if (!empty($missing)) { asort($missing); ?>

$v) { ?>