title: How to authent to Cognos TM1 REST API when server is using CAM
body: <p>When to try to get some date using REST API from a Cognos TM1 i get HTTP 401: Unauthorized</p>
  
  <p>Here is my sample with basic authentication header.</p>
  
  <pre><code>GET https://testserver:8000/api/v1/Cubes
  </code></pre>
  
  <p>I get HTTP 401: Unauthorized and in heads:</p>
  
  <pre><code>WWW-Authenticate: CAMPassport http://testserver:80/ibmcognos/cgi-bin/cognosisapi.dll, CAMNamespace
  </code></pre>
  
  <p>How to get cookie from CAM so i could use it with REST API ?</p>