Initial code to use Apache HTTP client
Initial full code using Apache HTTP client