-
HTTPBin is a network tool provides request record service and custom route responses.
You can public service that we deployed on the internet, but not at now.
Site: http://httpbin.icu/ (future)
- HTTPBin support multi-user use online as the same time.
- You can turn on/off recording manually.
- It can automatically analyze data parameters and dump to disk.
- It can filter and batch export raw content.
- It supports custom multiple specified route response content.
-
You can clone this repo and build it on local machine via docker, another way to get simple is by following the command
docker pull xenny/httpbin
-
Next, you need complete some necessary pre-steps before running it.
- Prepare a VPS with docker server
- Prepare a domain with full DNS control
- Add a new DNS A record to bind the VPS IP (e.g. httpbin.icu ----> xxx.xxx.xxx.xxx)
- Add an A record for all subdomain (e.g. *.httpbin.icu ----> xxx.xxx.xxx.xxx)
-
Finally, just run with next command.
docker run -it -p 80:80 -e HOST=your.domain xenny/httpbin
-
As it, you can also running it natively when you DNS record is right done.(Remember to modify the host in
settings.py
)pip install -r requirements.txt python main.py
- IP Mode support
- DNS log support
- Custom response headers
- Your issues:)
- If you have any other idea/problem in usage, you can create an issues or pull-request and describe it in much detail.
- Test: @Airrudder