const LRDD_REL = 'lrdd';
const UPDATESFROM = 'http://schemas.google.com/g/2010#updates-from';
const HCARD = 'http://microformats.org/profile/hcard';
+ const MF2_HCARD = 'http://microformats.org/profile/h-card'; // microformats2 h-card
const JRD_MIMETYPE_OLD = 'application/json'; // RFC6415 uses this
const JRD_MIMETYPE = 'application/jrd+json';
// Normalize the incoming $id to make sure we have a uri
$uri = self::normalize($id);
+ common_debug(sprintf('Performing discovery for "%s" (normalized "%s")', $id, $uri));
+
foreach ($this->methods as $class) {
try {
$xrd = new XML_XRD();
$headers[] = "Accept: {$link->type}";
}
- $response = $client->get($xrd_uri, $headers);
+ $response = $client->get($xrd_uri, $headers);
if ($response->getStatus() != 200) {
throw new Exception('Unexpected HTTP status code.');
}
return $template;
}
}
-
-