Skip to content

Instantly share code, notes, and snippets.

@eddies
Last active December 16, 2015 22:09
Show Gist options
  • Save eddies/5504741 to your computer and use it in GitHub Desktop.
Save eddies/5504741 to your computer and use it in GitHub Desktop.
addRelationship debug output of POST to fcrepo 3.6.2
1 * Client out-bound request
1 > POST http://localhost:9090/fedora/objects/test-rest:1/relationships/new?subject=info:fedora/test-rest:1&predicate=urn:foo/testAddRelationship&object=urn:foo/%ED%95%9C
1 * Client in-bound response
1 < 200
1 < Date: Thu, 02 May 2013 19:25:37 GMT
1 < Content-Length: 4
1 < Set-Cookie: JSESSIONID=1F9DDDB40836F0819F73288AEC7D312B; Path=/fedora/; HttpOnly
1 < Content-Type: text/html
1 < Server: Apache-Coyote/1.1
1 <
true
1 * Client out-bound request
1 > GET http://localhost:9090/fedora/objects/test-rest:1/relationships?subject=info:fedora/test-rest:1&predicate=urn:foo/testAddRelationship
1 * Client in-bound response
1 < 200
1 < Date: Thu, 02 May 2013 19:25:37 GMT
1 < Content-Length: 259
1 < Set-Cookie: JSESSIONID=5E98146A23C5901F0A8B037E3500AD8A; Path=/fedora/; HttpOnly
1 < Content-Type: application/rdf+xml
1 < Server: Apache-Coyote/1.1
1 <
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/test-rest:1">
<testAddRelationship xmlns="urn:foo/" rdf:resource="urn:foo/한"/>
</rdf:Description>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment