Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Another question about Server API / File API

Hi John,


Thank you. I hope now I have all valid combinations.


Some more questions from my side:


1.       In the Orion wiki the statement is that one cannot create file using PUT. In the implementation loaded from here ( one can do this. Where is a bug?


2.       I sent already a bug report, but I still want to ask you:


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?


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 


Best Regards,






From: orion-dev-bounces@xxxxxxxxxxx [mailto:orion-dev-bounces@xxxxxxxxxxx] On Behalf Of John Arthorne
Sent: Donnerstag, 22. August 2013 22:26
To: Orion developer discussions
Cc: orion-dev-bounces@xxxxxxxxxxx
Subject: Re: [orion-dev] Another question about Server API / File API


1. Yes he missed one valid combination. The only limitation among current values is that "copy" and "move" are mutually exclusive. All other combinations are allowed.

2. No problem!


Back to the top