wr = new WebResource("dropbox:///Lively/PartsBin/Demos/Clock.png")
wr.get().content
wr = new WebResource("dropbox:///Lively/PartsBin/Basic/Pen.png")
wr.beAsync()
wr.whenDone(function(data, status){
alert("data:" + data + "\nstatus: " + JSON.prettyPrint(status) + "\ncode: "+ wr.statusCode)
if (status.error) throw status.error
})
wr.get()
wr.content
LastXHR.getAllResponseHeaders()
x-dropbox-request-id: a5903fa5f68a233e7762634048671d6c
Content-Length: 7471
pragma: no-cache
x-server-response-time: 259
Content-Type: image/png
cache-control: no-cache
accept-ranges: bytes
x-dropbox-metadata: {"rev": "1e04bd01397f44", "thumb_exists": true, "path": "/Lively/PartsBin/Basic/Pen.png", "is_dir": false, "client_mtime": "Mon, 11 May 2015 14:15:24 +0000", "icon": "page_white_picture", "read_only": false, "modifier": null, "bytes": 7471, "modified": "Mon, 11 May 2015 14:15:35 +0000", "size": "7.3 KB", "root": "dropbox", "mime_type": "image/png", "revision": 1967293}