Simple Go based HTTP(s) server echoing all the headers and message body of the request in the body of the response.
httpechoserver
for Linux (AMD64)httpechoserver.exe
for Windows (AMD64)
Edit the parameters stored in httpechoserver.yaml. Place it in the same directory as the binary executable.
Place httpechoserver.log in the same directory as the binary executable and ensure it is writable by the user running the executable.
Run the executable file.
/etc/systemd/system/httpechoserver.service
.
sudo systemctl enable httpechoserver
# Start the service
sudo systemctl start httpechoserver
# Check status
sudo systemctl status httpechoserver
# Restart the service
sudo systemctl restart httpechoserver
# Stop the service
sudo systemctl stop httpechoserver
# Disable the service
sudo systemctl disable httpechoserver
Make sure Go is installed on your system.
Download and extract the repository.
From the command line, run:
go mod download
- For Windows:
SET GOOS=windows
SET GOARCH=amd64
go build -o httpechoserver.exe
- For Linux:
SET GOOS=linux
SET GOARCH=amd64
go build -o httpechoserver