Basic implementation of the http client