Thanks! It worked a treat. Gary Thomas > -----Original Message----- > From: Aaron Patterson [mailto:aaron / tenderlovemaking.com] > Sent: Sunday, 29 April 2007 10:09 p.m. > To: ruby-talk ML > Subject: Re: Strange error with HTTPS request > > > On Sun, Apr 29, 2007 at 03:23:25PM +0900, Gary Thomas wrote: > > I am interested in downloading, from the New Zealand TAB > (Totalisator Agency > > Board) website, the names of the race meetings on a particular > date. This is > > normally reached from the TAB main page (www.tab.co.nz) through their > > results page which has a form with date dropdown (and uses > HTTPS). Picking > > (for example) 20 April 2007 leads to a web page with the URL > > ebet.tab.co.nz/ebet/ResultsArchive?day=20&month=04&year=2007 > > > > [snip] > > > > > Can someone point out my mistake in this code which works pretty well in > > other situations? > > Do you really need to use Net::HTTP? I was able to fetch the page with > mechanize and not have to deal with setting up Net::HTTP: > > require 'rubygems' > require 'mechanize' > > mech = WWW::Mechanize.new > page = > mech.get('https://ebet.tab.co.nz/ebet/ResultsArchive?day=20&month= > 04&year=2007') > puts page.body.length > > Hope that helps! > > -- > Aaron Patterson > http://tenderlovemaking.com/ > >