Skip to main content

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

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 

Back to the top