[openstack-dev] Barbican : Unable to send PUT request to store the secret

2015-03-20 Thread Asha Seshagiri
Hi All , I am unable to send the PUT request using the CURL command for storing the secret . root@barbican:~# curl -X POST -H 'content-type:application/json' -H 'X-Project-Id: 12345' -d '{secret: {name: secretname, algorithm: aes, bit_length : 256, mode: cbc}}'

Re: [openstack-dev] Barbican : Unable to send PUT request to store the secret

2015-03-20 Thread Asha Seshagiri
Hi All , Now the command for put request has been successful .the content type for the header needs to be text/plain. I thought that the datatype for the data parameters would determine the content type of the header. For ex : In this case the data is passed in the following format