--3xoW37o/FfUZJwQG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Jim Freeze (jim / freeze.org) wrote:

> Ok, that worked fine. Now how do I get net/http to do that?

It should be doing that automatically for you, provided you give
net/http a hostname rather than an IP address.  For me, this performs as
expected (the host has several vhosts):

#!/usr/bin/env ruby -w
require 'net/http'
Net::HTTP.get_print('segment7.net', '/') # prints the page @ segment7.net

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04


--3xoW37o/FfUZJwQG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9ojtYMypVHHlsnwQRAne7AJ9RuQtnWi+irg7BDa79F7MCqxAiXgCg4Fah
k9ELrH1mClnoMrOOaHj2h9ot3
-----END PGP SIGNATURE-----

--3xoW37o/FfUZJwQG--