From: 7stud -- Date: 2008-02-04T09:35:16+09:00 Subject: Re: mechanize get methods returns both ::File and ::Page Carl Bernardi wrote: > The page is html. Below, I included the log. It shows the page's > content type to be "text/html" for the first few attempts and then the > last attempt to be "text/plain". I'm not sure how showing me the log files is evidence that even though the page says it is 'text/plain' that it really contains html. > All I need to know is how to get a > page instead of a file either be extending Mechanize, creating a > instance of WWW::Mechanize::Page with the body from the file object Page#new() takes a URI as an argument. So it seems like you could save the file, and then provide a URI with the file:// scheme and create a new Page. -- Posted via http://www.ruby-forum.com/.