If some day you wondered how to inspect a HTTP request to try out some webhook or even an SalesForce outbound message (😅), I have a tip for you: requestbin + ngrok.
The requestbin is an open source project with this purpose. It’s self hosted! You can run it locally using Docker or even deploy it to a free Heroku dyno. If you decide to go local, ngrok can help as well. With it you will be able to create private tunnels from your local environment, making it available to the world.
To put these cool projects together and debug some HTTP requests you may:
- Configure the requestbin locally using Docker (there are instructions on project’s README - super easy)
- Expose the local server using ngrok (passing the same port from requestbin, like
ngrok http 8000)
- Create a new request on requestbin and replace the URL given by it in the application you’d like to debug (in my case, in the Salesforce outbound message URL)
- Do whatever you need in your app to trigger the feature connected to this URL
- PROFIT ✨
Another recommended project to achieve the same is putsreq (not tested by myself yet). :)
Good debuging (and good luck)! 🐛
comments powered by Disqus