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  (
http://wiki.eclipse.org/Orion/Server_API/File_API#Getting_file_metadata_and_contents).
In the Orion implementation (http://download.eclipse.org/orion/) 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,

Vitaly


Example Response

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







Back to the top