ActivityPub Probe Diagnostic'; $o .= '
'; $o .= 'Lookup URI:
'; $o .= 'Request Signed version:
'; $o .= '
'; $o .= '

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