Skip to content

Instantly share code, notes, and snippets.

@ebeeson
Created March 19, 2014 18:27
Show Gist options
  • Save ebeeson/9648110 to your computer and use it in GitHub Desktop.
Save ebeeson/9648110 to your computer and use it in GitHub Desktop.
---> HTTP GET https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX
---> END HTTP (0-byte body)
<--- HTTP 200 https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX (1063ms)
: HTTP/1.1 200 OK
Date: Wed, 19 Mar 2014 18:16:49 GMT
Access-Control-Allow-Origin: *
Content-Length: 127
Connection: keep-alive
Content-Type: application/json
{"cache":"cache_name","key":"test1","value":"old value","cas":"5992565652478157541","flags":0,"expires":"9999-01-01T00:00:00Z"}
<--- END HTTP (127-byte body)
---> HTTP PUT https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX
Content-Type: application/json; charset=UTF-8
Content-Length: 65
{"value":"new value","replace":true,"add":false,"cas":"00000000"}
---> END HTTP (65-byte body)
<--- HTTP 200 https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX (1644ms)
: HTTP/1.1 200 OK
Date: Wed, 19 Mar 2014 18:16:50 GMT
Access-Control-Allow-Origin: *
Content-Length: 17
Connection: keep-alive
Content-Type: application/json
{"msg":"Stored."}
<--- END HTTP (17-byte body)
---> HTTP GET https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX
---> END HTTP (0-byte body)
<--- HTTP 200 https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX (816ms)
: HTTP/1.1 200 OK
Date: Wed, 19 Mar 2014 18:16:51 GMT
Access-Control-Allow-Origin: *
Content-Length: 127
Connection: keep-alive
Content-Type: application/json
{"cache":"cache_name","key":"test1","value":"new value","cas":"5992566043320095800","flags":0,"expires":"9999-01-01T00:00:00Z"}
<--- END HTTP (127-byte body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment