[Openstack-operators] Problem send HTTP GET request.

Amar Kapadia akapadia_usa at yahoo.com
Wed Nov 9 23:09:43 UTC 2011


I just went through this exercise. See if my blog on this topic helps: http://bit.ly/uku6VN

Good luck,


Regards,

Amar
==

From: Salman Zubair Toor <salman.toor at it.uu.se>

To: Marcelo Martins <btorch-os at zeroaccess.org>
Cc: openstack-operators at lists.openstack.org
Subject: Re: [Openstack-operators] Problem send HTTP GET request.
Message-ID: <43121C3F-AEFB-40C7-B63C-AB7BD13E12DF at it.uu.se>
Content-Type: text/plain; charset="windows-1252"; Format="flowed";
    DelSp="yes"

Hi Marcelo,

Thanks for the reply.

With curl I manage to access the file.

# curl -v -k -H 'X-Storage-User: system:root' -H 'X-Storage-Pass:  
testpass' https://swift.uppmax.se:443/auth/v1.0

# curl -v -k -H "GET HTTP/1.1" -H 'X-Auth-Token:  
AUTH_tk63e5a2291f9b44a1ab5afb9674c05779' https://swift.uppmax.se/v1/AUTH_286270d2-3d18-46f5-a5dc-7c6c88da1e7d/rootContainer/eventdata.root

following is the correct header


> GET /v1/AUTH_286270d2-3d18-46f5-a5dc-7c6c88da1e7d/rootContainer/ 
eventdata.root HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7  
OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: swift.uppmax.se
> Accept: */*
> X-Auth-Token: AUTH_tk63e5a2291f9b44a1ab5afb9674c05779


Actually my original task is a bit different. I am working on a  
project where we already have S3 plugin available and I want to access  
SWIFT using S3 plugin,
Thats why I want to use Authentication rather than X-Auth-Token.

With this solution I can continue but is there anything else you want  
me to try ?

Regards..
Salman.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111109/1f859a96/attachment-0002.html>


More information about the Openstack-operators mailing list