based on httpclient-4.3.1