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/