Use the Net::HTTP interface a little better.