~jtv / stuff / hookcatcherxyz

NAME

hookcatcherxyz - x marks the hook

SYNOPSIS

hookcatcher xyz: catch HTTP requests and look at them

Make a catcher (GET or POST, no account, no key):
    curl https://www.hookcatcher.xyz/x
The answer is JSON with "hook_url" and "log_url".

Whatever is sent to the first URL is kept, with any method, any path below it and any body:
    curl -d 'hello' https://www.hookcatcher.xyz/y/<id>
    curl -X PUT -H 'X-Test: 1' 'https://www.hookcatcher.xyz/y/<id>/some/path?a=b'

See what arrived, newest first:
    https://www.hookcatcher.xyz/z/<id>
    curl https://www.hookcatcher.xyz/z/<id>?format=json
    curl https://www.hookcatcher.xyz/z/<id>?format=txt

DESCRIPTION

An experiment that turned out to be useful to three people. I wrote this one afternoon when a script of mine was calling another machine and I could not tell what it was sending. It has grown a little since.

FILES

~jtv/public_html/hookcatcherxyz/   this page
~jtv/hookcatcherxyz.count   the counter, at present 0 catchers made

BUGS

The page does not say when it last reloaded.
Probably others. Mail me.
The counter was reset once by accident and is therefore too low.

TODO

SEE ALSO

motd-www(8), quota-www(1) (not written yet), printq-www(1), spool(7)


jtv@moraine   (hookcatcher.xyz)
Postgraduate office 1.32, second desk

Last modified: Tue Sep 30 11:27:19 2003 by jtv.  Copyright (c) 1998.  This page is valid HTML 2.0, or was.