title: Authentication Error in using Alfresco Rest API
body: <p>I am trying to hit the alfresco rest api using my standalone rest code. i get the login ticket when i use the below url -</p>
  
  <pre><code>"http://host:port/alfresco/service/api/login?u=admin&amp;pw=admin"
  </code></pre>
  
  <p>and i got the ticket but how do i use this ticket for further communication with alfresco without facing this authentication problem.</p>
  
  <p>below is the code i am using for communicating with the alfresco rest client.</p>
  
  <pre><code>HttpGet getReq = new HttpGet(url);
  getReq.addHeader("accept", "application/json");
  StringEntity input = new StringEntity(args);
  HttpResponse response = client.execute(getReq);
  </code></pre>
  
  <p>Kind Regards
  Garvit Jain</p>