title: Setting user agent in Java httpclient and allow redirects to true
body: <p>I am trying to set my user agent string in the HttpClient apache object in Java but I cannot find out how to do it.</p>
  
  <p>Please help!</p>
  
  <p>Also I am trying to enable redirects to true but also cannot find this option within the HttpClient object.</p>
  
  <p>Thanks</p>
  
  <p>Andy</p>