ActivityPub Probe Diagnostic';
$o .= '
';
$o .= '
';
if(x($_GET,'addr')) {
$addr = $_GET['addr'];
$redirects = 0;
$x = z_fetch_url($addr,true,$redirects,
[ 'headers' => [ 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"']]);
logger('fetch: ' . print_r($x,true));
if($x['success'])
$o .= '' . str_replace('\\','',jindent($x['body'])) . '
';
}
return $o;
}
}