Use http client instead of http url connection