diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-14 22:40:29 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-14 22:40:29 -0700 |
commit | e9679d251cea59c3948bcaa9c651f47338783384 (patch) | |
tree | 6eaeb106209f329cdc8244279fb1097d9c1af537 /Zotlabs/Module | |
parent | 68f6043d44e65f0516b2374948b51ccc8ab241fc (diff) | |
download | volse-hubzilla-e9679d251cea59c3948bcaa9c651f47338783384.tar.gz volse-hubzilla-e9679d251cea59c3948bcaa9c651f47338783384.tar.bz2 volse-hubzilla-e9679d251cea59c3948bcaa9c651f47338783384.zip |
more work on activitypub httpsignature verification
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Ap_probe.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Ap_probe.php b/Zotlabs/Module/Ap_probe.php index 735a2d5a9..57e254267 100644 --- a/Zotlabs/Module/Ap_probe.php +++ b/Zotlabs/Module/Ap_probe.php @@ -2,7 +2,7 @@ namespace Zotlabs\Module; require_once('include/zot.php'); - +require_once('addon/pubcrawl/HTTPSig.php'); class Ap_probe extends \Zotlabs\Web\Controller { @@ -31,6 +31,9 @@ class Ap_probe extends \Zotlabs\Web\Controller { $x = z_fetch_url($addr,true,$redirects, [ 'headers' => [ $headers ]]); if($x['success']) $o .= '<pre>' . $x['header'] . '</pre>' . EOL; + + $o .= 'verify returns: ' . \HTTPSig::verify($x) . EOL; + $o .= '<pre>' . str_replace(['\\n','\\'],["\n",''],jindent($x['body'])) . '</pre>'; } return $o; |