Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created August 7, 2015 01:26
Show Gist options
  • Save notmyname/bcd35426f15e69a367fd to your computer and use it in GitHub Desktop.
Save notmyname/bcd35426f15e69a367fd to your computer and use it in GitHub Desktop.
john  europa  ~  $  testtoken | pbcopy
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/
HTTP/1.1 204 No Content
Content-Type: text/plain; charset=utf-8
X-Account-Object-Count: 0
X-Timestamp: 1438910683.86435
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
X-Put-Timestamp: 1438910683.86435
Content-Length: 0
X-Trans-Id: tx7619cdccd9e149e992718-0055c408db
Date: Fri, 07 Aug 2015 01:24:43 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c -XPUT
HTTP/1.1 201 Created
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx19406afaf3b241db979a1-0055c408e2
Date: Fri, 07 Aug 2015 01:24:50 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c/dir1/o1 --data-binary 1234 -XPUT
HTTP/1.1 201 Created
Last-Modified: Fri, 07 Aug 2015 01:25:18 GMT
Content-Length: 0
Etag: 81dc9bdb52d04dc20036dbd8313ed055
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx4f868290dab14d55808aa-0055c408fd
Date: Fri, 07 Aug 2015 01:25:17 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c/dir1/o2 --data-binary 5678 -XPUT
HTTP/1.1 201 Created
Last-Modified: Fri, 07 Aug 2015 01:25:27 GMT
Content-Length: 0
Etag: 674f3c2c1a8a6f90461e8a66fb5550ba
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txdaf7a65465914fd6afc52-0055c40906
Date: Fri, 07 Aug 2015 01:25:26 GMT
john  europa  ~  $ 
john  europa  ~  $ 
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c/dir2/o1 --data-binary 4321 -XPUT
HTTP/1.1 201 Created
Last-Modified: Fri, 07 Aug 2015 01:25:39 GMT
Content-Length: 0
Etag: d93591bdf7860e1e4ee2fca799911215
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx7e4a71da42ae4991a0672-0055c40912
Date: Fri, 07 Aug 2015 01:25:39 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c/dir2/o2 --data-binary 8765 -XPUT
HTTP/1.1 201 Created
Last-Modified: Fri, 07 Aug 2015 01:25:48 GMT
Content-Length: 0
Etag: f38fef4c0e4988792723c29a0bd3ca98
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx73800ba2efc641178c321-0055c4091b
Date: Fri, 07 Aug 2015 01:25:47 GMT
john  europa  ~  $ 
john  europa  ~  $ 
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c/
HTTP/1.1 200 OK
Content-Length: 32
X-Container-Object-Count: 4
Accept-Ranges: bytes
X-Storage-Policy: legacy
X-Container-Bytes-Used: 16
X-Timestamp: 1438910690.75337
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx2e3454abee964be3a8847-0055c4091f
Date: Fri, 07 Aug 2015 01:25:51 GMT
dir1/o1
dir1/o2
dir2/o1
dir2/o2
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c?delimiter=/
HTTP/1.1 200 OK
Content-Length: 12
X-Container-Object-Count: 4
Accept-Ranges: bytes
X-Storage-Policy: legacy
X-Container-Bytes-Used: 16
X-Timestamp: 1438910690.74120
Content-Type: text/plain; charset=utf-8
X-Trans-Id: txd30d0ac5222a4e6789f51-0055c40928
Date: Fri, 07 Aug 2015 01:26:00 GMT
dir1/
dir2/
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk6bdef19d000c4fcaa18eb6b7b2b1e7cb" http://saio:8080/v1/AUTH_test/c?prefix=dir1/
HTTP/1.1 200 OK
Content-Length: 16
X-Container-Object-Count: 4
Accept-Ranges: bytes
X-Storage-Policy: legacy
X-Container-Bytes-Used: 16
X-Timestamp: 1438910690.74386
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx673dc15cbb204e5191ba5-0055c40937
Date: Fri, 07 Aug 2015 01:26:15 GMT
dir1/o1
dir1/o2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment