Using needle as a http client so that we can handle https and basic auth more easily