This is a comprehensive guide to using Apache HttpClient 4 - from starting out to advanced configuration and best practices.
1. HttpClient Basics
2. Advanced Usage
The implementation of all these examples and code snippets can be found in my github project – this is an Eclipse based project, so it should be easy to import and run as it is.