This is so much easier with http-access2.  It handles keep alive
connections, ssl, cookies, headers, pretty much everything you would
want without having to do all the hard work yourself.

Chris