Zot6 Probe Diagnostic'; $o .= '
'; $o .= '' . htmlspecialchars(print_array($x)) . ''; $headers = 'Accept: application/x-zot+json, application/jrd+json, application/json'; $redirects = 0; $x = z_fetch_url($addr,true,$redirects, [ 'headers' => [ $headers ]]); if($x['success']) { $o .= '
' . htmlspecialchars($x['header']) . '' . EOL; $o .= 'verify returns: ' . str_replace("\n",EOL,print_r(HTTPSig::verify($x),true)) . EOL; $o .= '
' . htmlspecialchars(json_encode(json_decode($x['body']),JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES)) . '' . EOL; } } return $o; } }