I have a HTTP application running on a server. I cannot modify the application, but I would like to trigger an event when a specific POST request is sent to the application.
I would like to run a bash script and pass it arguments such as the IP of the client making the request and the headers of the HTTP request.
What tools can I use to achieve this? I would like it to be as lightweight as possible and it needs to run on a headless machine.