Skip to content

Instantly share code, notes, and snippets.

@shino
Created January 21, 2016 02:19
Show Gist options
  • Save shino/1fb8179313d4dbec7715 to your computer and use it in GitHub Desktop.
Save shino/1fb8179313d4dbec7715 to your computer and use it in GitHub Desktop.
% S3CURL=.s3curl.15018.alice s3curl.pl --id cs -- -x 127.0.0.1:15018 -v -s 'http://test-acl.s3.amazonaws.com/?acl'
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 15018 (#0)
> GET http://test-acl.s3.amazonaws.com/?acl HTTP/1.1
> User-Agent: curl/7.35.0
> Host: test-acl.s3.amazonaws.com
> Accept: */*
> Proxy-Connection: Keep-Alive
> x-amz-date: Thu, 21 Jan 2016 02:18:41 GMT
> Authorization: AWS JJ4LS-TIUTIOR3GTOROG:C+d5R+ByK4IuGba7SXfScQ/JXtA=
>
< HTTP/1.1 200 OK
* Server Riak CS is not blacklisted
< Server: Riak CS
< Date: Thu, 21 Jan 2016 02:18:41 GMT
< Content-Type: application/xml
< Content-Length: 748
<
{ [data not shown]
* Connection #0 to host 127.0.0.1 left intact
<?xml version="1.0" encoding="UTF-8"?>
<AccessControlPolicy>
<Owner>
<ID>76e888f9b086d07ffa4f9e783e98e33790a290441b3ca8afead6f5f7fce8737d</ID>
<DisplayName>alice</DisplayName>
</Owner>
<AccessControlList>
<Grant>
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
<ID>76e888f9b086d07ffa4f9e783e98e33790a290441b3ca8afead6f5f7fce8737d</ID>
<DisplayName>alice</DisplayName>
</Grantee>
<Permission>FULL_CONTROL</Permission>
</Grant>
<Grant>
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
<ID>d8348a7b7ecba72043c2335f37b01fc0c0a5847bec4c57bb5dad7fcd6f4cca30</ID>
<DisplayName>bob</DisplayName>
</Grantee>
<Permission>FULL_CONTROL</Permission>
</Grant>
</AccessControlList>
</AccessControlPolicy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment