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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show Me the Headers

21 点作者 traviskuhl将近 15 年前

8 条评论

raesene将近 15 年前
Of course they should probably escape any headers they get from the sites they pull the data from to avoid Cross-Site Scripting :) <a href="http://showmetheheaders.com/?q=www.mccune.org.uk" rel="nofollow">http://showmetheheaders.com/?q=www.mccune.org.uk</a>
评论 #1539511 未加载
qw将近 15 年前
Rick Roll:<p><a href="http://showmetheheaders.com/?q=vg.no" rel="nofollow">http://showmetheheaders.com/?q=vg.no</a><p><pre><code> * X-VG-WebServer: leon * X-VG-WebCache: fritz * X-Rick-Would-Never: Never Gonna Give You Up * X-VG-Korken: http://www.youtube.com/watch?v=Fcj8CnD5188 * X-Cache: HIT * X-Cache-Hits: 214 * X-Age: 187</code></pre>
wwortiz将近 15 年前
Looks like they do it with javascript + YUI which is pretty cool: <a href="http://showmetheheaders.com/static/showme.js" rel="nofollow">http://showmetheheaders.com/static/showme.js</a><p>You can do it with curl too for all those who don't know<p><pre><code> curl -I example.com </code></pre> works with multiple domains as well
bl4k将近 15 年前
you should send a user agent that makes it look like a real browser. for eg. Microsoft.com responses are different based on user agent, which is why they do the redirect. Here is Microsoft.com from Chrome (it is diff again for IE 6/7/8 etc.), you get a lot more information:<p><pre><code> Cache-Control:public Content-Encoding:gzip Content-Length:23262 Content-Type:text/html; charset=utf-8 Date:Fri, 23 Jul 2010 07:27:32 GMT ETag:634154400660000000 Expires:Fri, 23 Jul 2010 07:37:32 GMT Last-Modified:Fri, 23 Jul 2010 07:01:06 GMT P3P:CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI" Server:Microsoft-IIS/7.5 VTag:438638311400000000 Vary:Accept-Encoding X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET</code></pre>
nod将近 15 年前
Is anyone else surprised that microsoft.com still has "emulate IE7" turned on?
tryke将近 15 年前
slashdot.org gives you fortune output in an "X-Fry" header, much like the site itself.<p>EDIT: on second look, they're Futurama quotes. That explains why "X-Fry" changed to "X-Bender" when I went back!
stuff4ben将近 15 年前
TechCrunch is fun...<p><pre><code> # X-hacker If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.</code></pre>
评论 #1539048 未加载
roachsocal将近 15 年前
This is fun.