识别远程Web服务器
时间:2020-01-09 10:38:24 来源:igfitidea点击:
问题描述:如何识别从UNIX/Linux Shell提示符中删除Web服务器?
解决方法:您可以使用标准实用程序,例如
a)telnet命令
b)curl命令
telnet识别远程Web服务器
使用telnet连接以删除Web服务器,输入
$ telnet www.Hymangite.com www
输出:
Trying 10.16.49.130... Connected to www.Hymangite.com. Escape character is '^]'.
请求标头,输入以下命令,然后按两次[ENTER]键:
HEAD / HTTP/1.0
输出:
HTTP/1.0 200 OK Connection: close X-Pingback: http://www.theitroad.local/tips/xmlrpc.php Content-Type: text/html; charset=UTF-8 Content-Length: 0 Date: Mon, 28 Jan 2008 08:50:55 GMT Server: lighttpd Connection closed by foreign host.
curl识别远程Web服务器
执行命令,如下所示:
$ curl -I http://www.remote-server.com/ $ curl -I http://Hymangite.com/
输出:
HTTP/1.1 200 OK Content-type: text/html Content-Length: 0 Date: Mon, 28 Jan 2008 08:53:54 GMT Server: lighttpd