Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created January 19, 2016 22:39
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/0a4d6be9a608642c959f to your computer and use it in GitHub Desktop.
Save notmyname/0a4d6be9a608642c959f to your computer and use it in GitHub Desktop.
$ testtoken | pbcopy
$ curl -i -H "X-Auth-Token: xxx" 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: 1453243007.44036
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
X-Put-Timestamp: 1453243007.44036
Content-Length: 0
X-Trans-Id: tx80a4da944b854d89b061c-00569eba7f
Date: Tue, 19 Jan 2016 22:36:47 GMT
$
$ curl -i -H "X-Auth-Token: xxx" 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: tx36dc0d7338074d8199397-00569eba85
Date: Tue, 19 Jan 2016 22:36:53 GMT
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c/o:x --data-binary 1234 -XPUT
HTTP/1.1 201 Created
Last-Modified: Tue, 19 Jan 2016 22:37:05 GMT
Content-Length: 0
Etag: 81dc9bdb52d04dc20036dbd8313ed055
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txb529a3aa1fdf43d2b458d-00569eba90
Date: Tue, 19 Jan 2016 22:37:04 GMT
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c
HTTP/1.1 200 OK
Content-Length: 4
X-Container-Object-Count: 1
Accept-Ranges: bytes
X-Storage-Policy: ec42
X-Container-Bytes-Used: 4
X-Timestamp: 1453243013.14855
Content-Type: text/plain; charset=utf-8
X-Trans-Id: txb70b64e8d13946a49b267-00569eba95
Date: Tue, 19 Jan 2016 22:37:09 GMT
o:x
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c/o%3Ay --data-binary 1234 -XPUT
HTTP/1.1 201 Created
Last-Modified: Tue, 19 Jan 2016 22:37:22 GMT
Content-Length: 0
Etag: 81dc9bdb52d04dc20036dbd8313ed055
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txf5949180098c459b970e3-00569ebaa1
Date: Tue, 19 Jan 2016 22:37:21 GMT
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c
HTTP/1.1 200 OK
Content-Length: 8
X-Container-Object-Count: 2
Accept-Ranges: bytes
X-Storage-Policy: ec42
X-Container-Bytes-Used: 8
X-Timestamp: 1453243013.14855
Content-Type: text/plain; charset=utf-8
X-Trans-Id: txccfc3fb628ee4e20bbaa8-00569ebaa3
Date: Tue, 19 Jan 2016 22:37:23 GMT
o:x
o:y
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c/o:y
HTTP/1.1 200 OK
Content-Length: 4
Last-Modified: Tue, 19 Jan 2016 22:37:22 GMT
Connection: close
Etag: 81dc9bdb52d04dc20036dbd8313ed055
X-Timestamp: 1453243041.03499
Date: Tue, 19 Jan 2016 22:37:30 GMT
Content-Type: application/x-www-form-urlencoded
X-Trans-Id: tx64530eaa456b4ec2b29a4-00569ebaaa
1234 $
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c/o%3Ay
HTTP/1.1 200 OK
Content-Length: 4
Last-Modified: Tue, 19 Jan 2016 22:37:22 GMT
Connection: close
Etag: 81dc9bdb52d04dc20036dbd8313ed055
X-Timestamp: 1453243041.03499
Date: Tue, 19 Jan 2016 22:37:35 GMT
Content-Type: application/x-www-form-urlencoded
X-Trans-Id: tx3f35bce67e654c4797517-00569ebaaf
1234 $
$ curl -i -H "X-Auth-Token: xxx" http://saio:8080/v1/AUTH_test/c/o%3A%79
HTTP/1.1 200 OK
Content-Length: 4
Last-Modified: Tue, 19 Jan 2016 22:37:22 GMT
Connection: close
Etag: 81dc9bdb52d04dc20036dbd8313ed055
X-Timestamp: 1453243041.03499
Date: Tue, 19 Jan 2016 22:38:04 GMT
Content-Type: application/x-www-form-urlencoded
X-Trans-Id: tx041c0e6e65054faea1704-00569ebacc
1234 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment