AKSW / node_ldp

Implementation of the Linked Data Platform for Node.
http://www.w3.org/TR/ldp/
19 stars 0 forks source link

Add additional HTTP headers #3

Open 0xfeedface opened 11 years ago

0xfeedface commented 11 years ago
seebi commented 11 years ago
white-gecko commented 11 years ago

Souldn't it also return a document type header?

It returnes:

$ netcat localhost 8001
GET http://webid.example.com/me
Accept: text/turtle

HTTP/1.1 200 OK
Date: Mon, 15 Apr 2013 16:15:07 GMT
Server: Crystal/0.1
Content-Length: 765
Connection: close

… (content)
0xfeedface commented 11 years ago

Do you mean Content-Type?

white-gecko commented 11 years ago

Yes. But maybe netcat just doesn't show me the complete header (which would be strange).

0xfeedface commented 11 years ago

There is currently no Content-Type header sent. But I don't know of any Document-Type header. That's why I'm asking.

white-gecko commented 11 years ago

sorry I meant Content-Type

0xfeedface commented 11 years ago

For ETag we need a canonical representation, based on which we can compute the hash. RDF/JSON does not work because it does not enforce a specific ordering of properties and object values. Any ideas?

seebi commented 11 years ago

so we need to normalize it in some way. rdf crypto tools use sorted ntriples for that (with bnode renaming / sorting as well)