title: Ambari api POST complaining CSRF protection
body: <p>I am trying to set hbase property through Ambari API using following command </p>
  
  <p><code>curl -u "admin:admin" -i -X POST -d '{"type": "hbase-site", "tag": "version3", "properties" : {"hbase.regionserver.global.memstore.size" : "0.6"}}' https://abct.net/api/v1/clusters/xyz/configurations</code></p>
  
  <p>But keep getting following error </p>
  
  <pre><code>HTTP/1.1 400 Bad Request
  Content-Length: 107
  Content-Type: text/plain
  Expires: Thu, 01 Jan 1970 00:00:00 GMT
  Server: Microsoft-IIS/8.5
  x-ms-hdi-active: 10.8.18.29
  X-Frame-Options: DENY
  X-XSS-Protection: 1; mode=block
  User: admin
  X-Powered-By: ARR/3.0
  Set-Cookie: AMBARISESSIONID=2e8ortl32j1p7zdjatigdgvg;Path=/;HttpOnly; path=/; secure
  X-Powered-By: ASP.NET
  Date: Mon, 12 Sep 2016 18:19:38 GMT
  
  {
    "status" : 400,
    "message" : "CSRF protection is turned on. X-Requested-By HTTP header is required."
  }
  </code></pre>
  
  <p>What  am missing here ?</p>