Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Server API / File API: Getting file metadata and contents


Please rise a bug for this documentation/implementation mismatch. in bugzilla
You can CC Mark Macdonald or John Arthorne. They should be able to help you.

Best regards,
Maciej Bendkowski

From:        "Kozyura, Vitaly" <v.kozyura@xxxxxxx>
To:        "'Orion developer discussions'" <orion-dev@xxxxxxxxxxx>,
Date:        2013-08-20 12:57
Subject:        [orion-dev] Server API / File API: Getting file metadata and        contents
Sent by:        orion-dev-bounces@xxxxxxxxxxx

Hi all,

Below is the example response from the wiki page
In the Orion implementation
( the “Content-Type: text/plain” is missing.
Instead there is some number of ‘\r’ and ‘\n’ around the contents.
What is the correct response?
Thanks in advance,

Example Response

HTTP/1.1 HTTP/1.1 200 OK
Content-Type: multipart/related; boundary="BOUNDARY"
ETag: "35fd43td3"
Content-Type: application/json
"Name" : "myfile.txt",
"Location" : "",
"ETag" : "35fd43td3",
"Directory" : "false",
"LocalTimeStamp" : "01234345009837",
"Charset" : "UTF-8",
"ContentType" : "text/plain",
"Attributes" : {
"ReadOnly" : "false",
"Executable" : "true"
Content-Type: text/plain
This is the contents

orion-dev mailing list

Back to the top