Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 519 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 519 Bytes

https-echoserver

A docker image which responds to both HTTP and self-signed HTTPS requests.

Running

docker run -d -p 8080:80 -p 8443:443 danthegoodman/https-echoserver

curl http://localhost:8080/hello
# {"httpVersion":"1.1","method":"GET","url":"/hello","headers":{"host":"localhost:8080","user-agent":"curl/7.49.1","accept":"*/*"}}

curl -k https://localhost:8443/world
# {"httpVersion":"1.1","method":"GET","url":"/world","headers":{"host":"localhost:8443","user-agent":"curl/7.49.1","accept":"*/*"}}