On Wed, 9 Feb 2005 02:44:10 +0900, James G. Britt
<ruby.talk.list / gmail.com> wrote:
> > agent = WWW::Mechanize.new {|a| a.log = Logger.new(STDERR) }
> > page = agent.get('https://www.alcoadirect.com/')
> > p page.forms
> 
> I wonder if the issue is the use of "https" ?
> 
> Can you get Mechanize to work with a non-SSL URL?

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?

 
Regards,
Jason