AnsweredAssumed Answered

No Response from cURL POST query

Question asked by Jim Ash Employee on Jul 12, 2019
Latest reply on Jul 16, 2019 by Jim Ash

We are trying to use a single POST query that will return details about all objects AND sub-directories directories within specified paths. When I try the cURL command it doesn't respond with anything, no errors or XML list. 

Can someone take a look at my XML values and cURL command at see what may be going wrong?

 

The "MultiQuery.XML file contains these values:

<queryRequest>
         <object>
               <query>
                  +namespace:visamr.demo2
                  +objectPath:"Dir1"
               </query>
               <query>
                  +namespace:visamr.demo2
                  +objectPath:"Dir3"
                 </query>
            <facets>namespace</facets>
            <verbose>true</verbose>
         </object>
</queryRequest>

 

Our cURL command is:

curl -k -H "Authorization: HCP aHMz:a3b9c163f6c520407ff34cfdb83ca5c6" -H "Content-Type: application/xml" -H "Accept: application/xml" -d /temp/visa/multiquery.xml "https://demo2.hcp-demo.hcpdomain.com/query?prettyprint"

 

The result (or lack there of) looks like this:

 

 

 

Any ideas why I am not getting a response back?

Outcomes