読者です 読者をやめる 読者になる 読者になる

感謝のプログラミング 10000時間

たどり着いた結果(さき)は、感謝でした。

How to get HTML using command prompt.

<スポンサーリンク>

You must enable telnet client.
Control Panel > Program > Program and function > enable of windows function

And then, you run command prompt, enter

telnet hatenablog.com 80

hatenablog is Japanese most popular weblog service.

And then, enter

GET / HTTP/1.1
hatenablog.com

so, you can get web site's html.

How to send mail using command prompt

Run command prompt.

Enter

nslookup

>set type=mx
>gmail.com

You can get gmail's smtp server host name.

gmail.com       MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.com
gmail.com       MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google.com
gmail.com       MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com
gmail.com       MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google.com
gmail.com       MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google.com

Select one smtp host, and type

telnet gmail-smtp-in.l.google.com 25

helo hoge

mail from:<hoge@hogefugaboo.com>
rcpt to:<hogefugafuu@gmail.com>
data
From:hoge@hogefugaboo.com
To:hogefugafuu@gmail.com
Subject:this is test

this is test.

quit