Testing webhooks in development platforms
Webhooks were popularized by PayPal and have become commonplace now a days. A typical webhook service fires a POST to a URL of your choice whenever something interesting happens. You handle this request and respond accordingly.
But you need to test webhooks regularly during development and it is a bit of a problem if your development server is inaccessible from the rest of the Internet.
I have tried to solve this using ssh and nginx.
For this method to work you need:
- Development server (which can hopefully process the webhook at /webhook) lets call it (D)