Brad Fitzpatrick <
br...@danga.com> writes:
> Norman, implementing by mimicking can get you pretty far, but be
> sure to actually read the protocol docs as well.
Absolutely. I am, however, finding the documentation difficult to understand.
For example, this page
https://perkeep.org/doc/protocol/blob-upload
Seems to be incomplete. Or at least, it doesn’t seem to describe what
camput actually does.
In my investigation, camput appears to POST the content addressable
blob then a moment later POST a blob of JSON that is apparently the
metadata for that blob. However, the metadata post is not, in any way
that I can see, distinguished as a metadata blob. And despite being
clearly a junk of JSON, it’s posted with a content-type of
application/octet-stream, so it’s inappropriate for the server to
attempt to parse it.
> And to be extra confident in your implementation, we have tests that
> you can run against your server to see that it behaves correctly. I
> can find those later for you if you don't find them first.
Thanks. Absent some documentation or explanation for what the protocol
is actually doing, I’m not sure how much more progress I can make.
Be seeing you,
norm
--
Norman Walsh <
n...@nwalsh.com> | What is familiar is what we are used
http://nwalsh.com/ | to; and what we are used to is most
| difficult to 'Know'—that is, to see as
| a problem; that is, to see as strange,
| as distant, as 'outside us'.--Nietzsche