Skip to content

Instantly share code, notes, and snippets.

@sleroux
Created August 29, 2016 15:11
Show Gist options
  • Save sleroux/de9fff6669c7ea95ff6cd3ea2ca51e98 to your computer and use it in GitHub Desktop.
Save sleroux/de9fff6669c7ea95ff6cd3ea2ca51e98 to your computer and use it in GitHub Desktop.
Request:
POST /1.5/45737838/storage/bookmarks?batch=true HTTP/1.1
Host: sync-340-us-west-2.sync.services.mozilla.com
Content-Type: application/newlines
X-If-Unmodified-Since: 1472482703.87
Accept: */*
Connection: keep-alive
Proxy-Connection: keep-alive
Content-Length: 905
User-Agent: Firefox-iOS-Sync/6.0 (Fennec (sleroux))
Accept-Language: en;q=1.0
Authorization: Hawk id="eyJub2RlIjogImh0dHBzOi8vc3luYy0zNDAtdXMtd2VzdC0yLnN5bmMuc2VydmljZXMubW96aWxsYS5jb20iLCAidWlkIjogNDU3Mzc4MzgsICJleHBpcmVzIjogMTQ3MjQ4NjE4MCwgImZ4YV91aWQiOiAiM2I1NGEwNTg1ZGVmOWZlOGQ1Y2IxNmI0Njc2MjkyNmYiLCAic2FsdCI6ICIwNTIzNTIiLCAiZGV2aWNlX2lkIjogImQ1MjMwMmU4Y2RhYWNiY2NjYTBjZGE4YzZlMDJkOGM1In1usQgT92CZ69L5a6tzS7KSFpYViwjtajo7d5wOuH8Ccg==", ts="1472483448", nonce="WHCgiNlTW8Q=", mac="P386fcgsHSdDI/ewl++yyRqVDVeP5vIi/bUC/nAusvQ="
Accept-Encoding: gzip;q=1.0,compress;q=0.5
{"payload":"{\"IV\":\"fYK2sUfdGnAZT0pHodq4eA==\",\"ciphertext\":\"uMudC0\\\/5S\\\/H7IfCyh6vlvTeHLYS0KWjK0YB8a43z79W087lFPOaJnjLWD4+oWGKoS5lc4wzo6S+ooahp5fzun0RhL3fS+2e65rKcXD6pTyNkz5SIGEzhkIPB05MFMvpeQY+9HEb+CVvKP0ZH5BzESq8SJghpEp+st\\\/y9kirBAQnWpUWyLopQMgvM+CqX+tgoID2g\\\/Q0OTT0Xn49oorHIABk9cJCiajzHpOhPlLb32kgEJ6wZn0lztab3BQuF3Z4I\",\"hmac\":\"12e29bdba40e8c4a9cbc639d4fb2a204ee7f1fc46b219ac96c913553542fe275\"}","sortindex":0,"id":"cKXpm3UCSg7M","ttl":null}
{"payload":"{\"IV\":\"hffNvh4\\\/GAxwGzGDFAtGVw==\",\"ciphertext\":\"inhmPt0nIolHDpT82e+VSCh\\\/9+NUYFp+cdi02yBrhucctDeYWOealKuCYI492xMyOGus2QNpzWsNkPCaY520qvozNOklyPO8VmoGTFhm\\\/zU11snMPCI60j9mABaX5r0kBmcbGA9D0iEhHkFkFbruR23aL6wmTVxdBfK0pSEUm8BmW8qhPWl2YlloEDoROVwyd+a33SqKHJxu1GhMd\\\/z4hX8QCjButypqPyTXkrM2XU8=\",\"hmac\":\"bc0fd3dc8880b97d1f7ffced9f3b30ed5e0418005a3f35250d3d5650629bec29\"}","sortindex":0,"id":"7d3djdFijV52","ttl":null}
response:
HTTP/1.1 200 OK
Server: openresty/1.9.7.3
Date: Mon, 29 Aug 2016 15:10:48 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 86
Connection: keep-alive
X-Last-Modified: 1472483448.55
X-Weave-Timestamp: 1472483448.55
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Max-Age: 1728000
Access-Control-Allow-Headers: DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Conditions-Accepted
{"failed": {}, "modified": 1472483448.55, "success": ["7d3djdFijV52", "cKXpm3UCSg7M"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment