1
xenme 2014-11-27 22:30:57 +08:00 1
首先,DNS肯定没有这个功能。
------ 其次,你的例子80是通的。 telnet bbs.leowood.net 80 Trying 58.176.229.230... Connected to bbs.leowood.net. Escape character is '^]'. GET HTTP/1.1 400 Bad Request Content-Type: text/html Date: Thu, 27 Nov 2014 14:29:44 GMT Connection: close Content-Length: 35 <h1>Bad Request (Invalid Verb)</h1>Connection closed by foreign host. |
2
aaaa007cn 2014-11-27 22:41:23 +08:00 1
$ curl http://bbs.leowood.net/ -v
* About to connect() to bbs.leowood.net port 80 (#0) * Trying 58.176.229.230... connected * Connected to bbs.leowood.net (58.176.229.230) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.16.3 (i686-pc-linux-gnu) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3 > Host: bbs.leowood.net > Accept: */* > < HTTP/1.1 302 Object moved < Date: Thu, 27 Nov 2014 14:34:39 GMT < Server: Microsoft-IIS/6.0 < X-Powered-By: ASP.NET < Location: http://bbs.leowood.net:88/ < Content-Length: 147 < Content-Type: text/html < <head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://bbs.leowood.net:88/">here</a>.</body> 那个例子是先请求 80 端口然后 302 到 88 端口 |