title: ReadyApi why does authorization header not work, but basic auth tab does
body: <p>I'm attempting to re-create a REST call I use in Ready-API from java but having issues. </p>
  
  <p>If I make a GET request in ReadyAPI with and I use the AUTH tab in the UI, and set it to Basic, with a username and password and I check "USE GLOBAL PREFERENCE" it works without issue. However if I select "Authenticate pre-emptively" it fails. </p>
  
  <p>Also in readyAPI if I insert an Authorization header with the base64 encoded string, instead of using the "Auth" tab, it also fails. This works for other servers I attempt to talk to, but not this one. </p>
  
  <p>I'm trying to find out why it fails with the Authorization Header. As I'm attempting to make the same call from java with restTemplate. </p>
  
  <p>Something like:</p>
  
  <pre><code>    String plainCreds = username + ":" + password;
      byte[] plainCredsBytes = StringUtils.getBytesUtf8(plainCreds);
      String base64Creds = Base64.encodeBase64String(plainCredsBytes);
  
      httpHeaders = new HttpHeaders();
      httpHeaders.add(HttpHeaders.AUTHORIZATION, "Basic " + base64Creds);
  </code></pre>
  
  <p>What is ReadyAPI doing differently when using the Auth Tab with "Use Global Preferences" that makes it succeed? How can I do this in Java?</p>