Add more code for HttpClient call

Still sifting through this. This is the first time I have ever used the
apache http client library, so it is currently slow going.