Girocco/Notify.pm: add json_test_post function
commitae66c892be3543c98c532d168d96787e54958ad7
authorKyle J. McKay <mackyle@gmail.com>
Mon, 15 Feb 2021 17:43:56 +0000 (15 10:43 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 15 Feb 2021 17:43:56 +0000 (15 10:43 -0700)
tree15340b560a4e22a70e4a0c6e40e0a85c0d391318
parent3be17b195e11ec22ceb234c6cc40c55fae484bdd
Girocco/Notify.pm: add json_test_post function

Rather than blindly accept just any old JSON POST url, the
json_test_post function can be called at the time the url
is first configured to verify that it can be POST'd to
successfully.

This is not unlike the behavior of that other well-known
service that we are emulating except that the intent is
to actually decline to configure the URL if anything other
than a "successful" (aka 2xx) status code comes back.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Notify.pm