From: Pen Ttt Date: 2010-06-16T14:18:07+09:00 Subject: mechanize login form i'm gona to simulate login my ubuntu forum,here is my program require 'rubygems' require 'mechanize' agent = Mechanize.new page = agent.get('http://forum.ubuntu.org.cn/ucp.php?mode=login&sid=d6179312144b3f8cf843d61b0ba409ca') uform = page.forms[1] uform.username = '���������' uform.password = '*****' uform.action = 'http://forum.ubuntu.org.cn/ucp.php?mode=login' page = agent.submit(uform) page.save('/home/pt/ubuntu') attention: keyword is absolutely right,here is ommitted. i found that i haven't longin when i open the file /home/pt/ubuntu with firefox. would you mind to tell me what the matter is in my program? -- Posted via http://www.ruby-forum.com/.