update to use Net::HTTP instead of curl