とりあえずRuby1.9.1とRuby1.8.7で動いたので載せる。特に設計とか考えずに書いたのでまだ改善の余地あり。 # vim:set fileencoding=UTF-8: require 'net/http' require 'uri' class MixiVoice def initialize mail,pass,key @cookie = "" @key = key @req = Net::HTTP.start "mixi.jp" login mail,pass end def login mail,pass res = @req.post "/login.pl", "email=#{mail}&password=#{pass}&next_url=/home.pl" @cookie = res["set-cookie"].split(",").join(";") end de