Posted at

(メモ)telnetでsmtp,httpをしてみる

More than 1 year has passed since last update.


SMTP

telnet mailserver.home 587

helo telnet1

mail from: <user@mailserver.home>
rcpt to: user@mailserver.home


メール送信

data

本文をここに書く
.


250 2.0.0 Ok: queued as B9D3217FFFFF



HTTP

$ telnet localhost 80

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
Connection closed by foreign host.