Developing locally has always been a difficult task when relying on WebHooks and remote services.
In order to help with the development of CloudMailin enabled services we developed the WebHookApp.
The hook debugger is an external service that uses WebSockets in order to allow you to debug any webhook and see the parameters that are being passed. The great thing about the hook debugger though is that it can then take the parameters that it is passed and generate a curl
command that can be used to mimic the request locally.
Note: This will prevent emails being delivered to your live app so we recommend using another address if your app is already live.
toggle curl command
button allows you to see the curl commandadd curl command to clipboard
to present all the command in a popup that you can copy and then paste.To ensure the curl command is sent to your local app place your local url into the end of the command:
... --request POST http://localhost:3000/incoming_mail
You may also need to update the host header in order to ensure that your app receives the post successfully:
... -H 'host:localhost:3000' ...
If for some reason WebSockets are unavailable the debugger should revert to using long polling. The debugger is a bit of a side project, and it still has a few kinks that need working out, but if you encounter any issues with the debugger be sure to contact us.