3 use Friendica\Network\Probe;
7 * Probe a network address to discover what kind of protocols we need to communicate with it.
9 * Warning: this function is a bit touchy and there are some subtle dependencies within the logic flow.
16 * PROBE_DIASPORA has a bias towards returning Diaspora information
17 * while PROBE_NORMAL has a bias towards dfrn/zot - in the case where
18 * an address (such as a Friendica address) supports more than one type
23 define('PROBE_NORMAL', 0);
24 define('PROBE_DIASPORA', 1);
26 function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
28 if ($mode == PROBE_DIASPORA)
29 $network = NETWORK_DIASPORA;
33 $data = Probe::uri($url, $network);