TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A poem inside HTTP response headers

74 点作者 jacobevelyn大约 3 年前

12 条评论

denysvitali大约 3 年前
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].<p>Wow.<p>[0]: <a href="https:&#x2F;&#x2F;www.rfc-editor.org&#x2F;rfc&#x2F;rfc6648" rel="nofollow">https:&#x2F;&#x2F;www.rfc-editor.org&#x2F;rfc&#x2F;rfc6648</a>
jesushax大约 3 年前
When I come to HN, this is what I&#x27;m always hoping to see. Lots are here for startup news, FAANG, etc. Nope, I just want to see really, really cool fun things.<p>Great work.
评论 #30992673 未加载
评论 #31003380 未加载
评论 #30995416 未加载
ResNet大约 3 年前
This is really cool!<p>For posterity, below is the output when the command is run:<p><pre><code> $ curl --head https:&#x2F;&#x2F;ja.cob.land&#x2F;http2-204 HTTP&#x2F;2 204 date: one of those frigid Saturdays in November age: just turned 27 location: Messina&#x27;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</code></pre>
1vuio0pswjnm7大约 3 年前
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 &quot;web browser&quot;, 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.<p>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.<p>Others have demonstrated how any bits can be transferred via a variety of methods, e.g., <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20001207014600if_&#x2F;http&#x2F;&#x2F;decss.zoy.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20001207014600if_&#x2F;http&#x2F;&#x2F;decss.zo...</a> That included NNTP or e-mail headers, but did not mention HTTP headers.<p>Poetry via HTTP response headers. It&#x27;s a start!
评论 #30997852 未加载
gkoberger大约 3 年前
This is awesome!<p>On a similar note, I added a unique poem to each of our error messages a while ago:<p><a href="https:&#x2F;&#x2F;readme-error-codes.herokuapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;readme-error-codes.herokuapp.com&#x2F;</a>
评论 #31000469 未加载
elek大约 3 年前
My older, but somewhat similar:<p>&gt; docker pull elek&#x2F;herbstag &amp;&amp; docker history elek&#x2F;herbstag<p>But it&#x27;s just publishing an old (but good) poem, not as cool as writing a new one ;-)
Agamus大约 3 年前
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大约 3 年前
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?
评论 #31005005 未加载
schroeding大约 3 年前
Very nice! By the way, I love that you explain everything, including how console commands can be run! :D
评论 #30995446 未加载
jacobevelyn大约 3 年前
Happy National Poetry Month (USA), HN!
zebraflask大约 3 年前
Love it! Very clever.
lxe大约 3 年前
This is prose!