Windows: Get HTTP Header of a Web Page using Telnet

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:

  1. Start a DOS command prompt
  2. From the command prompt type
    telnet www.microsoft.com 80
  3. Turn on localecho so you can see what you are doing.
    1. Type Ctrl+] (hold down the Ctrl key and press the right bracket)
    2. Type
      set localecho
    3. Press Enter on a blank line
  4. type
    GET / HTTP/1.1
    Host: www.microsoft.com
  5. Press Enter twice
posted @ 2009-08-12 13:30  Fan Zhang  阅读(204)  评论(0编辑  收藏  举报