|
 |
| ■telnetでメール受信(POP3) |
# telnet pop.linksphere.jp 110
//接続ユーザを指定
> user xxxxx
//パスワードを指定
> pass xxxxx
//届いているメールの一覧を表示する
> list
//メールの内容を見る(番号を指定)
> retr 1
//メールを削除する(番号を指定)
> dele 1
//通信終了
> quit |
| ■telnetでメール送信(SMTP) |
# telnet smtp.linksphere.jp 25
Trying xxx.xxx.xxx.xxx...
Connected to smtp.linksphere.jp.
Escape character is '^]'.
//クライアントドメイン名を指定
> helo linksphere.jp
250 ******* Hello
//送信元メールアドレスを指定
> mail from: xxxxxxxxx@linksphere.jp
250 ... Sender ok
//送信先メールアドレスを指定
> rcpt to: xxxxxx@yahoo.co.jp
250 ... Recipient ok
//送信するメールの内容を指定
> data
354 Enter mail, end with "." on a line by itself
From: xxxxxxxxx@linksphere.jp //送信元メールアドレス
Reply-To: xxxxxxxxx@linksphere.jp //返信先メールアドレス(省略可)
To: xxxxxx@yahoo.co.jp //送信先メールアドレス
Subject: send test //題名
Send Test OK!? //本文
.
//.で終了。
250 O64084 Message accepted for delivery
//通信終了
> quit
※POP before SMTPが使用されているサーバでは、
一度受信してからでなければ送信は出来ません。 |
| ■telnetでブラウジング |
# telnet linksphere.jp 80
GET /php/phpinfo.php HTTP/1.0
HOST: linksphere.jp
HTTP/1.1 200 OK
Date: Wed, 11 Jun 2003 08:21:04 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.9 OpenSSL/0.9.7e
X-Powered-By: PHP/4.3.9
Connection: close Content-Type: text/html
Connection closed by foreign host.
●ヘッダー情報の取得
# telnet www.linksphere.jp 80
HEAD / HTTP/1.0
HOST: www.linksphere.jp
HTTP/1.1 200 OK
Date: Thu, 12 Jun 2003 06:45:27 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.9
X-Powered-By: PHP/4.3.9
Accept-Ranges: bytes
Connection: close
Content-Type: text/html;
charset=EUC-JP
Connection closed by foreign host.
●メソッドの種類
HTTP/1.0= GET, HEAD, PUT, POST, DELETE, LINK, UNLINK
HTTP/1.1= OPTIONS, TRACE, PATCH
●レスポンスコード
100 : Continue
101 : Switching Protocols
200 : OK
201 : Created
202 : Accepted
203 : Non-Authoritative Information
204 : No Content
205 : Reset Content
206 : Partial Content
300 : Multiple Choices
301 : Moved Permanently
302 : Moved Temporarily
303 : See Other
304 : Not Modified
305 : Use Proxy
400 : Bad Request
401 : Unauthorized
402 : Payment Required
403 : Forbidden
404 : Not Found
405 : Method Not Allowed
406 : Not Acceptable
407 : Proxy Authentication Required
408 : Request Time-out
409 : Conflict
410 : Gone
411 : Length Required
412 : Precondition Failed
413 : Request Entity Too Large
414 : Request-URI Too Large
415 : Unsupported Media Type
500 : Internal Server Error
501 : Not Implemented
502 : Bad Gateway
503 : Service Unavailable
504 : Gateway Time-out
505 : HTTP Version not supported |
|
|