Idea: Use JUCE WebInputStream class for Webhook calls?
Instead of including another library or using cURL, can we just use WebInputStream
?
https://docs.juce.com/master/classWebInputStream.html
It includes a withExtraHeaders
option, so that it can do a POST
request.
We don't need to process the response from the webhook. Just check to see if its response code was 200, using getResponseHeaders
?
If not 200, then log error. But potentially, it should be able to log the error to another (presumably working) webhook that is meant to handle errors.
Edited by Travis