2

This question is linked with my other question "log in with browser and then ruby/mechanize takes it over?"

I am not able to log into one website using Ruby/Mechanize so I was thinking if there is any workaround for the log-in part. After that I want my script to take over and do its job.

Could somebody suggest what is the best/easiest way to:

  • capture all info (cookies and do I need anything else)?
  • pass it to Ruby/Mechanize?
Community
  • 1
  • 1
Radek
  • 13,813
  • 52
  • 161
  • 255

1 Answers1

1

I do not know how to pass cookies and headers to Mechanize. I do not need this workaround any more but I can recommend these Firefox addons for analyzing/saving/viewing cookies and HTTP headers. They helped me to find a solution:

  • Live HTTP headers
  • Firebug
  • httpfox
  • webdeveloper
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Radek
  • 13,813
  • 52
  • 161
  • 255
  • Hey Radek, what was your issue exactly? What was the solution to the issue? – Vlad Zloteanu Sep 21 '11 at 08:55
  • I think that the solution was either to add new field in mechanize that wasn't captured by mechanize so the login process can be successful or that the login required md5 not the username & password. Hope this helps. – Radek Sep 21 '11 at 23:59