initialize the http client with an url