From: 7stud -- Date: 2008-02-12T16:36:25+09:00 Subject: Re: Mechanize click()-Problem Toni Keller wrote: > > It looks as if there is some hidden redirect or something like that, > because the result is always the same, that is I'm still on the same > page. > The server can accomplish a redirect by sending back a page that is the same as the original page, but that has a html tag. The html tag can direct the browser go to a specified url in a given number of seconds, which can be 0 seconds. If that is the case, then you need to get the url specified in the tag. You can examine the html of the page to see if it has a html tag by looking at the output from: page = agent.get('http://google.com/') puts page.body #which appears to be undocumented Try that and post the first 20 lines or so of the output. -- Posted via http://www.ruby-forum.com/.