GETdata
From flud
Note: the most up-to-date documentation of the protocol is the source code itself, at http://flud.org/tryit.html
Contents |
[edit] (Retrieve) GET /file/[filekey]
Get file data. This operation uses Multipart/Related header to send multiple files to the client in a single HTTP operation. The bulk of the data, in most cases, is file data (since fs metadata is stored along with file data, file metadata is returned with file data).
[edit] authentication
This operation requires authentication.
[edit] required parameters:
- Ku_e: integer value (not encoded). value of 'e' from public key.
- Ku_n: integer value (not encoded). value of 'n' from public key.
- port: integer value (not encoded). listen port.
[edit] possible responses
normal response:
- code: 200 OK
- data: Mutlipart/Related filedata and filesystem metadata
response for malformed request:
- code: 400 BAD REQUEST
- data: error message
response for challenge-response failure:
- code: 401 UNAUTHORIZED
- data: error message