Updated code to use httpclient 4.3

Updated code to use httpclient 4.3