Was improperly calling the Net::HTTP API

* Fixes the way that Net::HTTP API calls were
  being made in the register and credentials providers