Re:Show HN: A simple echo server for testing HTTP clients
by deofoo on Sunday May 21, 2023 @08:04AM
(#36020050)
It will be cool if you add some quick script for s self-hosted version. And thank for sharing the source code.
[ Parent
| on HN ]
Re:Show HN: A simple echo server for testing HTTP clients
by __s__ on Sunday May 21, 2023 @11:07AM
(#36021744)
Thank you for your comment! I plan to add it in the next implementation.
Re:Show HN: A simple echo server for testing HTTP clients
by nickjj on Sunday May 21, 2023 @11:20AM
(#36021859)
A few years ago I put together: https://github.com/nickjj/webserver
It's a self hosted zero dependency / single file Python based echo server. You run `webserver 8000` and then you can make HTTP requests to `localhost:8000` with whatever URL path, headers and payload you want and it'll echo it back.
Re:Show HN: A simple echo server for testing HTTP clients
by francislavoie on Sunday May 21, 2023 @01:43PM
(#36023170)
You can also use Caddy to do this. Single static binary, use the "respond" command to spin up a super simple server that responds with the text and headers you want: https://caddyserver.com/docs/command-line#caddy-respond also gives you Automatic HTTPS out of the box, production ready proxy, etc.