Refactor move to net/http

Must specify whether to use https or http