title: 415 Unsupported Media Type in Artifactory AQL POST
body: <p>Probably a simple mistake but I get a 415 Unsupported Media Type error with this simple Artifactory AQL POST. I get the same error regardless of whether I include the content-type header.</p>
  
  <pre><code>#!/usr/local/bin/python
  import requests
  import json
  
  username = "admin"
  password = "password"
  url = "http://myhost:8081/artifactory/api/search/aql"
  
  r = requests.post(url, auth=(username, password), headers={"content-type":"application/json"}, json='{items.find( { "repo":{"$eq":"test-repo"} })}')
  
  if r.status_code == 200:
      print "Success!\n"
      print r.content
  else:
      print "Fail\n"
      print r.text
  </code></pre>
  
  <p>{
    "errors" : [ {
      "status" : 415,
      "message" : "Unsupported Media Type"
    } ]
  }</p>