How to telnet google using command prompt?

流过昼夜 提交于 2019-12-03 12:56:51
$ telnet www.google.com 80
Trying 173.194.38.82...
Connected to www.google.com.
Escape character is '^]'.
GET / HTTP/1.1

HTTP/1.1 302 Found
Location: http://www.google.co.jp/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
[.... skipped ....]
DiveInto

After issuing the request:

GET / HTTP/1.1

you also need input an empty line to show that your request has ended, otherwise, nothing will be returned.

Reference: http://blog.nullspace.io/day-208.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!