Replace deprecated DefaultHttpClient.