Is it possible to set Content-Type: Application/json as a header and not as a parameter in the url?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm quite new to Ceph and Radosgw and we are using Ceph instead of Swift in our Openstack deployment.

I would like to know if it is possible to return a set of objects in json format by setting the content type as a header and not as a parameter in the url.

This works:
curl -i http://{URL}/swift/v1/test?format=json -X GET -H "X-Auth-Token: {TOKEN}"

This doesn't:
curl -i http://{URL}/swift/v1/test -X GET -H "X-Auth-Token: {TOKEN}" -H "Content-Type: Application/json"

We tried adding 'rgw_extended_http_attrs = Content-Type' below [client.radosgw.gateway] section in our ceph.conf file but that also did not work.

Best regards,
Bruno.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux