謎ヘッダ
% lwp-request -d -e http://www.ics.tut.ac.jp/ | iconv -f CP932 -t UTF-8 Connection: close Date: Thu, 22 Mar 2007 19:51:54 GMT Accept-Ranges: bytes ETag: "2d457b-199-4f1a9d40" Server: Apache/2.0.51 (Turbolinux) Content-Length: 409 Content-Type: text/html; charset=ISO-8858-1 Content-Type: text/html;charset=Shift_JIS Last-Modified: Fri, 11 Nov 2005 02:59:25 GMT Client-Date: Thu, 22 Mar 2007 19:51:54 GMT Client-Peer: 133.15.41.36:80 Client-Response-Num: 1 Title: 情報工学系 % lwp-request -d -e http://www.ics.tut.ac.jp/main.html | iconv -f CP932 -t UTF-8 Connection: close Date: Thu, 22 Mar 2007 19:53:33 GMT Accept-Ranges: bytes ETag: "2d4588-fcd-80e2d1c0" Server: Apache/2.0.51 (Turbolinux) Content-Language: ja Content-Length: 4045 Content-Type: text/html; charset=ISO-8858-1 Content-Type: text/html; charset=Shift_JIS Last-Modified: Thu, 14 Apr 2005 03:55:59 GMT Client-Date: Thu, 22 Mar 2007 19:53:33 GMT Client-Peer: 133.15.41.36:80 Client-Response-Num: 1 Content-Script-Type: text/javascript Content-Style-Type: text/css Link: <style.css>; rel="stylesheet"; type="text/css" Link: <frame.css>; rel="stylesheet"; type="text/css" Title: 情報工学系(MAIN)
なんて突っ込みどころの多いレスポンスヘッダなんだ。
- ISO-8858-1 ってなんですか。
Content-type ヘッダが2つあるんですけどLink とか Title ってヘッダは何ですか?
というかどういう構成にしたらこうなるんだろうか。なんか変な Apache モジュールでも入れている?
lwp-request が付加していると判明。すみません。(Thanks miyagawa さん)