Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created October 17, 2014 17:11
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/f2873b8370c680bb67bd to your computer and use it in GitHub Desktop.
Save notmyname/f2873b8370c680bb67bd to your computer and use it in GitHub Desktop.
john@europa:~$ curl -i -H "X-Auth-Token: AUTH_tkfbd1c4029e79421ca345b69c3cee91f7" 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: 1413565783.88545
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
X-Put-Timestamp: 1413565783.88545
Content-Length: 0
X-Trans-Id: txcb0f32a5cb2e40d3a9352-0054414d57
Date: Fri, 17 Oct 2014 17:09:43 GMT
john@europa:~$ curl -i -H "X-Auth-Token: AUTH_tkfbd1c4029e79421ca345b69c3cee91f7" 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: tx0cb706ce8f13421991f40-0054414d5c
Date: Fri, 17 Oct 2014 17:09:48 GMT
john@europa:~$ ls -lh 1MB
-rw-rw-r-- 1 john staff 1.0M Apr 12 2013 1MB
john@europa:~$ curl -i -H "X-Auth-Token: AUTH_tkfbd1c4029e79421ca345b69c3cee91f7" http://saio:8080/v1/AUTH_test/c/obj1 -T 1MB -XPUT
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Last-Modified: Fri, 17 Oct 2014 17:10:26 GMT
Content-Length: 0
Etag: b6d81b360a5672d80c27430f39153e2c
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx11acad3fd5dc4487b81ac-0054414d81
Date: Fri, 17 Oct 2014 17:10:25 GMT
john@europa:~$ md5sum 1MB
b6d81b360a5672d80c27430f39153e2c 1MB
john@europa:~$ curl -i -H "X-Auth-Token: AUTH_tkfbd1c4029e79421ca345b69c3cee91f7" http://saio:8080/v1/AUTH_test/c/obj2 -H "Etag: b6d81b360a5672d80c27430f39153e2c" -T 1MB -XPUT
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Last-Modified: Fri, 17 Oct 2014 17:10:45 GMT
Content-Length: 0
Etag: b6d81b360a5672d80c27430f39153e2c
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx0a1df4eda4924a7e91cac-0054414d94
Date: Fri, 17 Oct 2014 17:10:44 GMT
john@europa:~$
john@europa:~$
john@europa:~$ curl -i -H "X-Auth-Token: AUTH_tkfbd1c4029e79421ca345b69c3cee91f7" http://saio:8080/v1/AUTH_test/c/obj3 -H "Etag: b6d81b360a5672d80c27430f3915ffff" -T 1MB -XPUT
HTTP/1.1 100 Continue
HTTP/1.1 422 Unprocessable Entity
Last-Modified: Fri, 17 Oct 2014 17:10:58 GMT
Content-Length: 93
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx2802208981134fcfaeb73-0054414da1
Date: Fri, 17 Oct 2014 17:10:57 GMT
<html><h1>Unprocessable Entity</h1><p>Unable to process the contained instructions</p></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment