Skip to content.

kagome.lab.tkikuchi.net

Sections
Personal tools
You are here: Home » Members » tkikuchi's Home » 授業 » 情報ネットワーク論特講 » Hyper Text Transfer Protocol
Views

Hyper Text Transfer Protocol

Document Actions

HTTP

  • HyperText Transfer Protocol
  • HTML ... HyperText Markup Language
  • 情報のありかを文書に埋め込む

HTTP の実際

  • サーバの TCP ポート80へ接続
  • GET / HTTP/1.0[Return] ... 要求(Command)
  • [Return]
  • HTTP/1.0 200 OK ... 応答(Response)
  • ....

RFC

HTTP 要求の構造

  • コマンド
  • 要求ヘッダ
  • 本体 (body) ... もしあれば

HTTP コマンド(例)

  • OPTIONS
  • GET ... (ファイルを)下さい
  • HEAD
  • POST ... データを送信します
  • PUT ... ファイルを送信します
  • DELETE
  • TRACE
  • CONNECT

要求ヘッダ

  • Host ... 仮想ホスト名を指定
  • If-Modified-Since ... キャッシュとの比較
  • Accept-Language ... 多言語サイトへの要求
  • Referer ... リンク元
  • User-Agent ... ブラウザ

HTTP 応答コード

  • 200 OK
  • 206 Partial Content
  • 302 Moved Temporarily
  • 304 Not Modified
  • 403 Forbidden
  • 404 Not Found
  • 500 Inernal Server Error

応答ヘッダ

  • Content-Type
  • Date
  • Expires
  • Location

HTTP/1.0 HTTP/1.1 の違い

  • 要求に Host ヘッダが必須
  • Connection の再利用
  • 拡張性
Created by tkikuchi
Last modified 2006-05-29 10:01
 

Powered by Plone

This site conforms to the following standards: