solution to 'http client'