title: Preemptive Basic authentication with Apache HttpClient 4
body: <p>Is there an easier way to setup the http client for preemptive basic authentication than what described <a href="http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java" rel="noreferrer">here</a>?<br>
  In previous version (3.x) it used to be a simple method call (eg, <code>httpClient.getParams().setAuthenticationPreemptive(true)</code>).<br>
  The main thing I want to avoid is adding the BasicHttpContext to each method I execute.</p>