Settings

Theme

Show HN: A poem inside HTTP response headers

ja.cob.land

74 points by jacobevelyn 4 years ago · 22 comments

Reader

denysvitali 4 years ago

I was about to complain the misuse of headers and the bad choice of not using an X-* header... then I discovered RFC 6648 [0].

Wow.

[0]: https://www.rfc-editor.org/rfc/rfc6648

jesushax 4 years ago

When I come to HN, this is what I'm always hoping to see. Lots are here for startup news, FAANG, etc. Nope, I just want to see really, really cool fun things.

Great work.

ResNet 4 years ago

This is really cool!

For posterity, below is the output when the command is run:

  $ curl --head https://ja.cob.land/http2-204
  HTTP/2 204 
  date: one of those frigid Saturdays in November
  age: just turned 27
  location: Messina's Trailer Park on Southside Drive
  trailer: 1967 Elcona single-wide (not as bad as it sounds)
  server: at the Neptune Diner until I can get published
  content-disposition: in the late autumn of my discontent
  accept-patch: if it contains nicotine
  tk: oh shit I should put something here
  expires: in my sleep I hope
1vuio0pswjnm7 4 years ago

One project I have had in mind for many years is a direct two-way, user-to-user communication protocol or user convention that only uses HTTP request headers. One benefit would be easier-to-write clients and logging servers. There would be no need for the complexity of, and hence third party control over, a "web browser", nor the need to learn skills (HTML, CSS, Javascript, etc.) to develop and maintain a website. Users could communicate and transfer small data directly via sending and logging HTTP requests.

If one is a avid reader of HTTP server logs, one might conclude there is a susbtantial amount of text being transfered over the internet via HTTP headers. However, almost all of it is intended for use by persons other than users. To me, as a user, this seems like a waste.

Others have demonstrated how any bits can be transferred via a variety of methods, e.g., https://web.archive.org/web/20001207014600if_/http//decss.zo... That included NNTP or e-mail headers, but did not mention HTTP headers.

Poetry via HTTP response headers. It's a start!

gkoberger 4 years ago

This is awesome!

On a similar note, I added a unique poem to each of our error messages a while ago:

https://readme-error-codes.herokuapp.com/

elek 4 years ago

My older, but somewhat similar:

> docker pull elek/herbstag && docker history elek/herbstag

But it's just publishing an old (but good) poem, not as cool as writing a new one ;-)

Agamus 4 years ago

This is lovely! A long time ago in a galaxy far, far away, much interesting content on the web was only found in source, but this is another level of elegance.

davidcollantes 4 years ago

Normally one will get the default headers, plus any other added. In this case, the default headers are all gone. How did you do it?

  • jacobevelynOP 4 years ago

    I guess it depends on what you consider a default header. (I’m not too familiar with standards here; there may be some IETF definition you’re referring to?)

    It turns out if you have enough control over your server you can make it do a lot of things! (Which may or may not conform to a spec.)

schroeding 4 years ago

Very nice! By the way, I love that you explain everything, including how console commands can be run! :D

  • jacobevelynOP 4 years ago

    Thank you! My hope was to make it accessible to non-technical readers while still being fun for people who are familiar with HTTP innards.

jacobevelynOP 4 years ago

Happy National Poetry Month (USA), HN!

zebraflask 4 years ago

Love it! Very clever.

lxe 4 years ago

This is prose!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection