Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing response headers in POST response #19

Open
noorbakerally opened this issue Jul 15, 2017 · 2 comments
Open

Missing response headers in POST response #19

noorbakerally opened this issue Jul 15, 2017 · 2 comments

Comments

@noorbakerally
Copy link

The Accept-Post is missing from the response header in a POST request to a container, as said here in the LDP Standard, this header should be included

@awoods
Copy link
Contributor

awoods commented Jul 17, 2017

@noorbakerally : The section of the LDP specification you referenced applies to OPTIONS requests on LDP Containers. In order to create an LDP Container, Cavendish requires you to specify an LDP Container interaction model as a Link header in the creation of the container resource. (Note: It is not clear that Cavendish currently supports changing the interaction model of an existing resource).

When creating a Basic Container with a command like the following,

 curl -i -XPOST -H"Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel=\"type\""  http://localhost:8080/

...subsequent OPTIONS request should indeed result in an Accept-Post header.

Accept-Post: text/turtle,application/ld+json

@barmintor
Copy link
Contributor

@noorbakerally @awoods is right that the default interaction model in Cavendish is LDP-R, not any kind of LDP-C. You should be able to replace the interaction model on a given resource with HTTP PUT, but you'll need to make sure any user data triples are included in the request body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants