From: garyo hosu Date: 2007-12-26T16:25:42+09:00 Subject: [ruby-list:44389] open-uri の last_modifiedが得られない ------=_Part_12531_2375511.1198653945205 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline いつもお世話になっております。garyoです。 open-uriでlast_modifiedの戻り値がnilになるのですが、何か原因がわからないでしょうか。 【現象】 リファレンシャルマニュアルのサンプルソースの http://www.ruby-lang.org/ja/man/?cmd=view;name=open-uri#OpenURI.3a.3aMeta.20.a5.e2.a5.b8.a5.e5.a1.bc.a5.eb 以下を実行したとき require 'open-uri' open("http://www.ruby-lang.org/en") {|f| p f.base_uri # p f.content_type # "text/html" p f.charset # "iso-8859-1" p f.content_encoding # [] p f.last_modified # Thu Dec 05 02:45:02 UTC 2002 } 以下が返る # "text/html" "utf-8" [] nil Complete(0) 【環境】 OS:WindowsXP ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32] URLは以下も試してみましたが同じでした http://www.yahoo.co.jp http://www.google.co.jp 以上、宜しくお願い致します。 ------=_Part_12531_2375511.1198653945205--