Question

If I want to Webhooks-enable a web application (I'm referring to the server-side of things, ie the server where the event happens and the callback is initiated from), are there libraries for this, or is this functionality typically part of the web server stack?

Or, am I looking at this incorrectly, and to implement Webhooks I simply code my application to do an HTTP POST callback based on whatever events I care about?

Was it helpful?

Solution

Webhooks are not a part of the web server. You have to program them yourself in your programming language of choice.

Open a socket to the right server and port, output the http-headers and the body and close the connection.

If you're using PHP, you can take a look at cURL, which makes things a bit easier.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top