title: Basic Authorization header with JSON
body: <p>Running a curl with Basic Authoirzation header is throwing the following error. I tried giving double quotes and other possibilities, but I still get the same error. Not sure what's wrong here</p>
  
  <pre><code>curl -k http://localhost:8080/api/session -H 'Authorization:Basic lkfnnlknvldfbvkjbfjkbkjbfdknbfdlknv==' -H Accept:application/json -X POST
  curl: (22) The requested URL returned error: 400 Bad Request
  curl: (6) Could not resolve host: lkfnnlknvldfbvkjbfjkbkjbfdknbfdlknv=='; Name or service not known
  </code></pre>
  
  <p>Other tries:</p>
  
  <pre><code>curl -k http://localhost:8080/api/session -H 'Authorization:lkfnnlknvldfbvkjbfjkbkjbfdknbfdlknv==' -H Accept:application/json -X POST
  curl: (22) The requested URL returned error: 400 Bad Request
  </code></pre>