From: Minero Aoki Date: 2001-10-29T20:16:33+09:00 Subject: [ruby-talk:23716] Re: Some inspirations from REBOL In mail "[ruby-talk:23713] Some inspirations from REBOL" Robert Feldt wrote: > R2. Internet protocols can be used very easily > RF comment: I think we may have to write some convenience class methods > that enables this kind of access. Something like > > require 'net/pop' > Net::POP3.read("user:pass@mail.dom").each {|m| print m} > > and > > require 'net/http' > page = Net::HTTP.read("www.rebol.com") You can use these code already: Net::POP3.foreach('mail.dom', nil, 'user', 'pass') {|m| print m.pop } aString = Net::HTTP.get('www.rebol.com') Net::HTTP.get_print('www.rebol.com') > We might even add Net.read which can handle URI's so that we could do > > Net.read("pop://user:pass@mail.dom").each {|m| print m} > > and > > page = Net.read("http://www.rebol.com") I agree with you, but I can't add these features yet. I'm just waiting that some URI class becomes standard. Minero Aoki