Don't use deprecated http client class
Switch to using URIBuilder