2 require_once('include/Probe.php');
6 * Probe a network address to discover what kind of protocols we need to communicate with it.
8 * Warning: this function is a bit touchy and there are some subtle dependencies within the logic flow.
15 * PROBE_DIASPORA has a bias towards returning Diaspora information
16 * while PROBE_NORMAL has a bias towards dfrn/zot - in the case where
17 * an address (such as a Friendica address) supports more than one type
22 define('PROBE_NORMAL', 0);
23 define('PROBE_DIASPORA', 1);
25 function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
27 if ($mode == PROBE_DIASPORA)
28 $network = NETWORK_DIASPORA;
32 $data = Probe::uri($url, $network);