[edit]

目次

[edit]

HTTPヘッダやCGI環境変数を実際に見てみる

カテゴリーHTTPヘッダやCGI環境変数を実際に見てみる
優先順位至急
イテレーションイテレーション1?
状態未着手
完了予定日
工数
対応者清原

[edit]

要件


[edit]

実験1

用意したページ

form.html

用意したサーバー側PHPプログラム

form.php

HTTPリクエストヘッダ

REQUEST GET /~kiyohara/form.php?c=c HTTP/1.1
Host okra.ark-web.jp
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.6)   Gecko/20070725 Firefox/2.0.0.6
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language ja,en-us;q=0.7,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset Shift_JIS,utf-8;q=0.7,*;q=0.7

HTTPレスポンスヘッダ

RESPONSE HTTP/1.1 200 OK
Date Tue, 07 Aug 2007 04:32:19 GMT
Server Apache/2.2.2 (Fedora)
Content-Length 151
Connection close
Content-Type text/html

CGI環境変数

Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.6) Gecko/20070725  Firefox/2.0.0.6
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
ja,en-us;q=0.7,en;q=0.3
okra.ark-web.jp
[edit]

サーバ応答コード

302
401
404

RESPONSE HTTP/1.1 404 Not Found
Date Tue, 07 Aug 2007 04:11:36 GMT
Server Apache/2.2.2 (Fedora)
Content-Length 296
Connection close
Content-Type text/html; charset=iso-8859-1

500

[edit]

実験2


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

アークウェブのサービスやソリューションはこちら