On Wed, 9 Feb 2005 03:08:25 +0900, Jason Sweat <jason.sweat / gmail.com> wrote:
> 
> I don't think https is the issue:
> After creating page I can do
> 
> page.inspect
> => "#<WWW::Page:0xb7a0cad0 @code=\"200\", @watch_for_set=nil,
> @uri=#<URI::HTTPS:0x..fdbd0689c URL:https://www.alcoadirect.com/>,
> @body=\" \\r\\n<HTML dir=ltr>\\r\\n<HEAD>\\r\\n<TITLE>
> ...snip...
>         </TD>\\r\\n              </TR>\\r\\n               \\r\\n
>       </TABLE>\\r\\n
> </TD></TR></TABLE></TD></TR></TBODY></TABLE>\\r\\n<hr size=1
> width=760>\\r\\n</BODY>\\r\\n</HTML>\\r\\n\", @response=#<Net::HTTPOK
> 200 OK readbody=true>, @cookies=[]>"
> 
> It gives me the error when I try the page.forms method.  Any other ideas?

Now this sounds familiar Ithough  don';t tink I ever told Mike of my problems )

mechanize.rb, in the parse_html method, has ths code:

:  @root.each_recursive {|node|
:      name = node.name.downcase
:      case name


If the node does not have a name attribute, then downcase
expectorates.   I think.

Try changing that to 
:      name = node.name.to_s.downcase

or add a nil? test  someplace

James
> Jason
> 
>