I am trying to use ruby to login to a web site and then
browse some of the other web pages.
As shown below is my codes.
I can pass the login phase,
but I can not access other pages after login.
I only got the login page instead.
I think you need to capture the cookie and resend it every time you
request a new page. Is your application supporting custom password
headers? Maybe you can use those for authentication instead of the
session cookie.