Using python HCP SDK i am trying to perform custom meta data query with POST request and passing query.xml file as an input to "body" parameter.
But the response i am getting is 302 found as below.
send: b'POST /rest/query%3Fprettyprint HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 6\r\nAccept: application/json\r\nExpect: 100-continue\r\nContent-type: application/xml\r\nCookie: hcp-ns-auth=xxxxxxxx:xxxxxxxxxxxxxxxxxxxxx\r\nHost: tenant.domain.com\r\nAuthorization: HCP xxxxxxx:xxxxxxxxxxxxxxxxxxxxxx\r\n\r\nSample'
DEBUG POST Request for /rest/query%3Fprettyprint - service_time1&2 = 0.05399990081787109
reply: 'HTTP/1.1 302 Found\r\n'
With curl based request i can able to get the proper result set.
But with POST request through HCP SDK i can not able to get the result set.
Any inputs will be helpful to me.