Use http.request instead of get, and reject if protocol is unrecognized