FOX icon indicating copy to clipboard operation
FOX copied to clipboard

wrong content type for request

Open GordianDziwis opened this issue 5 years ago • 1 comments

curl -d "@example.json"  -H "Content-Type:application/json;charset=utf-8" "http://fox-demo.aksw.org/fox" -vvv

gives

*   Trying 139.18.2.38...
* TCP_NODELAY set
* Connected to fox-demo.aksw.org (139.18.2.38) port 80 (#0)
> POST /fox HTTP/1.1
> Host: fox-demo.aksw.org
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type:application/json;charset=utf-8
> Content-Length: 269
> 
* upload completely sent off: 269 out of 269 bytes
< HTTP/1.1 200 OK
< Date: Thu, 11 Oct 2018 16:19:25 GMT
< Server: Jetty(9.3.6.v20151106)
< Content-Type: application/x-turtle;charset=utf-8
< Transfer-Encoding: chunked
< 
{
  "@graph" : [ {
    "@id" : "_:b0",
    "@type" : [ "foxo:NamedEntityRecognition", "prov:Activity" ],
    "endedAtTime" : "2018-10-11T18:19:25.590+02:00",
    "generated"...

Content-Type: application/x-turtle;charset=utf-8 should be something "json-ld"

GordianDziwis avatar Oct 11 '18 16:10 GordianDziwis

Hi,

yes thanks for the hint, the response type is wrong.

renespeck avatar Oct 11 '18 17:10 renespeck