AnsweredAssumed Answered

REST Invoke API not working with linux cURL command

Question asked by AVSDevTest on May 11, 2016
Latest reply on May 16, 2016 by Melanie_Giuliani

Hi All,

 

I am trying to access DevTest REST Invoke API using curl command with default "admin" devtest user but always getting empty reply from server. Same thing is working with Postman REST client.

 

Command : curl -H "Set-Cookie: locale=en; userName={\"state\":{\"USER_NAME\":\"s:admin\"}}" -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/vnd.ca.lisaInvoke.virtualService+xml" -X GET http://localhost:1505/api/Dcm/VSEs/VSE

 

Please suggest. Thanks.

Outcomes