Changed http client to version 4