switch to Net::HTTP for sample client