问个白菜问题,如果url被重写了,怎么判断一个网站是用什么编程语言写的?

2012-03-28 15:50:45 +08:00
 paloalto
比如这个网站: http://www.mightyquiz.com
4483 次点击
所在节点    问与答
4 条回复
paloalto
2012-03-28 15:56:51 +08:00
$ curl --head http://mightyquiz.com

HTTP/1.1 301 Moved Permanently
Date: Wed, 28 Mar 2012 07:32:01 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2
Location: http://www.mightyquiz.com/
Content-Type: text/html; charset=iso-8859-1

能从head信息里看出来吗?
master
2012-03-28 15:56:55 +08:00
rewrite是一回事,而且一个网站也不一定只用一种语言写的吧。
一般情况下看站点Reponse Header里面的一些信息可以有写方向,但也不能说100%确定。

例子中的那个网站估摸着是Ruby?
krazy
2012-03-28 15:58:57 +08:00
curl -I http://www.mightyquiz.com
HTTP/1.1 200 OK
Date: Wed, 28 Mar 2012 08:00:56 GMT
Server: Mongrel 1.1.5
Status: 200
ETag: "379e9b197dcd084ee0e2925ffee40cce"
P3P: CP="CAO DSP CURa ADMa DEVa OUR NOR DEM STA" policyref="/w3c/p3p.xml"
X-Runtime: 790
Content-Type: text/html; charset=utf-8
Content-Length: 44660
Cache-Control: private, max-age=0, must-revalidate
Set-Cookie: _urtog_session_id=e2b603e428f208fcc259241caf12bee0; domain=.mightyquiz.com; path=/; expires=Wed, 04 Apr 2012 08:00:57 GMT; HttpOnly
Vary: Accept-Encoding
==========
Server: Mongrel 1.1.5
paloalto
2012-03-28 16:01:37 +08:00
Mongrel给了提示。原来是Ruby!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/30766

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX