Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created May 17, 2016 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notmyname/47ae97d800e8f85f58907758c8fb8373 to your computer and use it in GitHub Desktop.
Save notmyname/47ae97d800e8f85f58907758c8fb8373 to your computer and use it in GitHub Desktop.
Last login: Mon May 16 20:54:34 on ttys001
john  europa  ~  $  testtoken | pbcopy
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk58795a583d9f4b79a728eeab438b8e98" 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: 1463457299.04109
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
X-Put-Timestamp: 1463457299.04109
Content-Length: 0
X-Trans-Id: txa7f25d0d8451450f97be2-00573a9613
Date: Tue, 17 May 2016 03:54:59 GMT
john  europa  ~  $ 
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk58795a583d9f4b79a728eeab438b8e98" 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: tx77db1a31f29c43b6b4845-00573a9617
Date: Tue, 17 May 2016 03:55:03 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk58795a583d9f4b79a728eeab438b8e98" http://saio:8080/v1/AUTH_test/c/o --data-binary 1234 -XPUT
HTTP/1.1 201 Created
Last-Modified: Tue, 17 May 2016 03:55:13 GMT
Content-Length: 0
Etag: 81dc9bdb52d04dc20036dbd8313ed055
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx6cc913b62eff4ba292bbd-00573a9620
Date: Tue, 17 May 2016 03:55:13 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk58795a583d9f4b79a728eeab438b8e98" http://saio:8080/v1/AUTH_test/c/o -XCOPY -H "Destination: /c/o2"
HTTP/1.1 201 Created
Last-Modified: Tue, 17 May 2016 03:55:33 GMT
Content-Length: 0
Etag: 81dc9bdb52d04dc20036dbd8313ed055
Content-Type: text/html; charset=UTF-8
X-Copied-From-Account: AUTH_test
X-Copied-From-Last-Modified: Tue, 17 May 2016 03:55:13 GMT
X-Copied-From: c/o
X-Trans-Id: txf5b2d9fbbe6f478e9e4ce-00573a9634
Date: Tue, 17 May 2016 03:55:32 GMT
john  europa  ~  $  curl -i -H "X-Auth-Token: AUTH_tk58795a583d9f4b79a728eeab438b8e98" http://saio:8080/v1/AUTH_test/c
HTTP/1.1 200 OK
Content-Length: 5
X-Container-Object-Count: 2
Accept-Ranges: bytes
X-Storage-Policy: legacy
X-Container-Bytes-Used: 8
X-Timestamp: 1463457303.68460
Content-Type: text/plain; charset=utf-8
X-Trans-Id: txe3a528fe70ae427d807ee-00573a9639
Date: Tue, 17 May 2016 03:55:37 GMT
o
o2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment