- 论坛徽章:
- 0
|
Get HTTP Header of a Web Page using Telnet
Keyword: telnet http
用Telnet查看http服务器的内容,排查故障时使用。
You can see the HTTP (hypertext transfer protocol) header from a web site using
the standard Telnet program that comes with Windows. For example, to see the
header from the root page of the Microsoft web site, do these steps:
Start a DOS command prompt
From the command prompt type
telnet www.microsoft.com 80
Turn on localecho so you can see what you are doing.
Type Ctrl+] (hold down the Ctrl key and press the right bracket)
Type
set localecho
Press Enter on a blank line
type
GET / HTTP/1.1
Host: www.microsoft.com
Press Enter twice相关阅读:
1.用Expect+telnet自动发送ICP电子邮件(163.com测试成功)
http://blog.chinaunix.net/u/553/showart_363042.html
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/553/showart_2064766.html |
|