Monday, January 6, 2014

Fun with logs - Geeks


As promised, here is a small tribute to the geeks visiting the teapot!

The best query are received by me are those two. With HTCPCP protocol, url "coffee", BREW and PROPFIND methods and even a pot-designator!

In fact, I received  few comments, but the traces in the logs  attest to the visits of some purists  for the integration of HTCPCP.

So I must begin by apologizing. My implementation of HTCPCP protocol is probably not up to your expectations..

X.X.X.X - - [14/Mar/2013:15:40:12 +0000] "HTCPCP/1.0 coffee://error418.net/pot-1/ PROPFIND" 501 357 "-" "-"
X.X.X.X  - - [14/Mar/2013:15:42:00 +0000] "BREW coffee://error418.net/pot-1/ HTCPCP/1.0" 501 357 "-" "-"


There is occasionally some attempts to address the BREW method:
X.X.X.X - - [13/Mar/2013:20:19:34 +0000] "BREW / HTTP/1.1" 501 357 "-" "-"

X.X.X.X - - [06/Mar/2013:22:09:27 +0000] "BREW" 400 349 "-" "-"

X.X.X.X - - [17/Oct/2013:11:01:18 +0200] "BREW / HTTP/1.1" 501 357 "-" "-"

X.X.X.X - - [29/Jan/2013:18:28:54 +0000] "BREW / HTTP/1.0" 501 357 "-" "-"


Some uses of HTCPCP instead of HTTP
X.X.X.X - - [20/Nov/2013:17:44:33 +0100] "GET HTCPCP/1.1" 400 349 "-" "-"

X.X.X.X - - [24/Oct/2013:18:47:43 +0200] "BREW / HTCPCP/1.0" 501 357 "-" "-"

X.X.X.X - - [24/Nov/2013:21:38:15 +0100] "BREW coffee HTCPCP/1.0" 501 357 "-" "-"

X.X.X.X  - - [14/Mar/2013:15:40:54 +0000] "HTCPCP/1.0 pot-1 BREW" 501 357 "-" "-"

X.X.X.X  - - [14/Mar/2013:15:41:33 +0000] "BREW pot-1 HTCPCP/1.0" 501 357 "-" "-"


The POST method is also provided
X.X.X.X www.htcpcp.net - [02/Feb/2013:01:58:48 +0000] "POST / HTTP/1.1" 200 1371 "-" "curl/7.28.1"


Some PROPFIND requests
X.X.X.X error418.net - [17/Oct/2013:11:01:26 +0200] "PROPFIND / HTTP/1.1" 418 1370 "-" "curl/7.29.0"

X.X.X.X www.htcpcp.net - [13/Dec/2013:00:52:08 +0100] "GET /propfind HTTP/1.1" 404 345 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"

attempts cream parameter
X.X.X.X error418.net - [19/Mar/2013:18:29:03 +0000] "GET /BREW%20pot-1?cream;2 HTTP/1.1" 404 345 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"


I would really like to tweak a nicer implementation HTCPCPI have some ideas, but unfortunately not enough time to implement them a the moment. Modifying an open source HTTP server is the track that seems to me the easiest way to be able to support non-HTTP requests, and return a 418 error as expected for BREW HTCPCP an PRODFIN METHOD.