This is a simple HTTP server running on port 4040. It sends its own IP address in response.
If a request is sent to /misbehave path, then 503 Service Unavailable response is sent.
Build container using below command
make build
make clean
make run
make docker-build-run
httpserver-outlier
runs on port 4040 on localhost.
- Send GET request on '/'. Response contains the external IP address of container.
$ curl http://localhost:4040/
Hi there, You asked for ! I am 172.17.0.2
$
- Send GET request on
/misbehave
path. The response is 503 HTTP error with message "MISBEHAVING! HTTP status code returned from !"
$ curl http://localhost:4040/misbehave
MISBEHAVING! HTTP status code returned from 172.17.0.2!