欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Mac安装telnet

程序员文章站 2024-03-14 10:40:10
...

使用 homebrew 安装telnet:

brew install telnet

安装完毕,然后输入命令测试

telnet toutiao.com 80

测试显示

Lou:~ kerwin$ telnet toutiao.com 80
Trying 123.58.9.80...
Connected to toutiao.com.
Escape character is '^]'.
BYE
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 13 Dec 2018 10:18:16 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
X-TT-TIMESTAMP: 1544696296.424

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
Connection closed by foreign host.
相关标签: Telnet