Re: [Openstack] curl with swift

2013-06-14 Thread Pete Zaitcev
On Mon, 10 Jun 2013 11:28:01 -0700 Remo Mattei r...@mattei.org wrote: I am using this command now but I get not auth to get this object. curl -X GET \ -H X-Auth-Token: 813c6eef9f474e7f860ef42dcaeeb53b \ http://192.168.235.113:8080/v1/AUTH_9ffeae726f33436b9e0796d31f85f730/remo.pen

[Openstack] curl with swift

2013-06-10 Thread Remo Mattei
Hello everyone, I am looking to do some testing on being able to retrieve data object from a swift server on a Instance that does not have anything but curl. Any suggestions? I am using this command now but I get not auth to get this object. Thanks, Remo curl -X GET \ -H X-Auth-Token:

Re: [Openstack] curl with swift

2013-06-10 Thread Christian Schwede
curl -X GET \ -H X-Auth-Token: 813c6eef9f474e7f860ef42dcaeeb53b \ http://192.168.235.113:8080/v1/AUTH_9ffeae726f33436b9e0796d31f85f730/remo.pen Remo.pem I think the name of the container is missing here? ___ Mailing list:

Re: [Openstack] curl with swift

2013-06-10 Thread John Dickinson
Sure, easy to do (curl is what I normally use anyway). To auth (for auth v1. v2 and keystone will be different): curl -i -H X-Auth-User: foo -H X-Auth-Key: bar http://swift/auth/v1.0 The 2 headers you need to look for are X-Storage-URL and X-Auth-Token. After that, use the X-Auth-Token to talk