Hyper Text Coffee Pot Control Protocol (Htcpcp/1.0)
ietf.org
ietf.org
This sentence reminds me of quine computer programs.
> A quine is a computer program which takes no input and produces a copy of its own source code as its only output.
https://en.wikipedia.org/wiki/Quine_(computing)
There was a post about one particular quine the other day on the front page of HN.
But the text about HTTP and process output got me thinking, I am wondering if anyone has written a quine HTTP server.
A web server that would respond to HTTP GET requests with a valid HTTP response containing its own source. Without cheating.
I found one that is close to that, but which does not exactly do that: http://michaelwehar.com/quines/c_prints_javascript.html