Hi!. I wonder if it''s possible to make a program in ruby that can log in some page that required a cookie. Once i''m login into the page i have to parse some html, but first i need to log in, Somebody know how to do this? Salu2... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
masch wrote:> Hi!. > I wonder if it''s possible to make a program in ruby that can log in some > page that required a cookie. Once i''m login into the page i have to > parse > some html, but first i need to log in, Somebody know how to do this? > > Salu2...https://rubyforge.org/projects/mechanize/ Mechanize will handle all your cookie details and follow redirects.. hth ilan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
HOOOOORAaaayy!!! Thanks so much Ilan!!...It''s exelent this. it;''s was what i needjust is just what i was looking for. Salu2!..:D On Tue, Feb 19, 2008 at 4:49 PM, Ilan Berci < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > masch wrote: > > Hi!. > > I wonder if it''s possible to make a program in ruby that can log in some > > page that required a cookie. Once i''m login into the page i have to > > parse > > some html, but first i need to log in, Somebody know how to do this? > > > > Salu2... > > https://rubyforge.org/projects/mechanize/ > > Mechanize will handle all your cookie details and follow redirects.. > > hth > > ilan > > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---