POST /modeshape-rest/test-file/default-file/items/test2File HTTP/1.1 Accept-Encoding: gzip, deflate User-Agent: Jakarta Commons-HttpClient/3.0.1 Host: 127.0.0.1:8080 Content-Length: 252 Content-Type: application/json {"properties":{"jcr:primaryType":"nt:file"},"children":{"jcr:content":{"properties":{"jcr:primaryType":"nt:resource","jcr:data/base64/":"VGhpcyBpcyB0ZXN0MkZpbGUgY29udGVudA==","jcr:lastModified":"2010-10-04T10:59:46.000Z","jcr:mimeType":"text/plain"}}}}HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 WWW-Authenticate: Basic realm="Realm" Content-Type: text/html;charset=utf-8 Content-Length: 946 Date: Mon, 04 Oct 2010 11:36:16 GMT JBoss Web/2.1.10 - Error report

HTTP Status 401 -


type Status report

message

description This request requires HTTP authentication ().


JBoss Web/2.1.10

POST /modeshape-rest/test-file/default-file/items/test2File HTTP/1.1 Accept-Encoding: gzip, deflate User-Agent: Jakarta Commons-HttpClient/3.0.1 Content-Length: 252 Content-Type: application/json Authorization: Basic YWRtaW46YWRtaW4= Host: 127.0.0.1:8080 {"properties":{"jcr:primaryType":"nt:file"},"children":{"jcr:content":{"properties":{"jcr:primaryType":"nt:resource","jcr:data/base64/":"VGhpcyBpcyB0ZXN0MkZpbGUgY29udGVudA==","jcr:lastModified":"2010-10-04T10:59:46.000Z","jcr:mimeType":"text/plain"}}}}HTTP/1.1 201 Created Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1 Content-Type: */* Content-Length: 308 Date: Mon, 04 Oct 2010 11:36:16 GMT {"properties":{"jcr:primaryType":"nt:file","jcr:created":"2010-10-04T13:36:16.000+02:00"},"children":{"jcr:content":{"properties":{"jcr:primaryType":"mode:resource","jcr:mimeType":"text\/plain","jcr:data\/base64\/":"VGhpcyBpcyB0ZXN0MkZpbGUgY29udGVudA==","jcr:lastModified":"2010-10-04T13:36:16.000+02:00"}}}}DELETE /modeshape-rest/test-file/default-file/items/test2File HTTP/1.1 Accept-Encoding: gzip, deflate User-Agent: Jakarta Commons-HttpClient/3.0.1 Host: 127.0.0.1:8080 HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 01:00:00 CET WWW-Authenticate: Basic realm="Realm" Content-Type: text/html;charset=utf-8 Content-Length: 946 Date: Mon, 04 Oct 2010 11:36:16 GMT JBoss Web/2.1.10 - Error report

HTTP Status 401 -


type Status report

message

description This request requires HTTP authentication ().


JBoss Web/2.1.10

DELETE /modeshape-rest/test-file/default-file/items/test2File HTTP/1.1 Accept-Encoding: gzip, deflate User-Agent: Jakarta Commons-HttpClient/3.0.1 Authorization: Basic YWRtaW46YWRtaW4= Host: 127.0.0.1:8080 HTTP/1.1 400 Bad Request Server: Apache-Coyote/1.1 Content-Length: 94 Date: Mon, 04 Oct 2010 11:36:16 GMT Connection: close No item exists at path jcr:uuid relative to /test2File/jcr:content in workspace "default-file"