Sign inSign up

marcinfalkowski/http-https-echo

By marcinfalkowski

•Updated over 6 years ago

Listens on http/https, echoes details about web requests including headers, body and SNI

Image
0

227

marcinfalkowski/http-https-echo repository overview

Docker image which echoes various HTTP request properties back to client, as well as in docker logs.

browser

⁠Usage

docker run -p 8080:80 -p 8443:443 --rm -t mendhak/http-https-echo

Then issue a request via your browser or curl -

curl -k -X PUT -H "Arbitrary:Header" -d aaa=bbb https://localhost:8443/hello-world

⁠Docker Compose

You can substitute the certificate and private key with your own. This example uses the snakeoil cert.

my-http-listener:
    image: mendhak/http-https-echo
    ports:
        - "8080:80"
        - "8443:443"
    volumes:
        - /etc/ssl/certs/ssl-cert-snakeoil.pem:/app/fullchain.pem
        - /etc/ssl/private/ssl-cert-snakeoil.key:/app/privkey.pem

⁠Output

⁠Curl output

curl

⁠docker logs output

dockerlogs

⁠Building

docker build -t mendhak/http-https-echo .

Tag summary

Content type

Image

Digest

Size

24.4 MB

Last updated

over 6 years ago

docker pull marcinfalkowski/http-https-echo