Capture the raw HTTP requests sent to a URL, so you can debug the stuff you get from webhooks. Based on the PostBin/RequestBin written in Python. Made with Node.js and Express.js, postbin-node is a more visually pleasing alternative to nc -l or tcpdump -x.
Each bin stores a maximum of 10 requests. Bins are removed if they have not been accessed for at least 48 hours.
There is also support for HTML5 WebSockets! Now you can see the frames and raw data sent through a WebSocket. The demo is available at /websocket.html once you've clone the repo and run the project locally. The online demo does not support WebSockets because it runs on Heroku's Cedar stack.
Contributions and suggestions are welcome. They're encouraged, actually.
Run postbin-node the same way you run any other Express.js application. The entire process should not take more than a couple minutes.
Step-by-step instructions:
- Install Node.js and npm
git clone https://github.com/badassdon/postbin-node.git
cd postbin-node
npm install
node app.js
- See it in action at http://localhost:3000
The source is freely available under the terms of the MIT License.
Feel free to download, modify, and use for personal or commercial projects. I would appreciate a pingback if you find the project useful, but it's certainly not required.
Based on RequestBin by Jeff Lindsay.