-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When issuing a SPARQL query to the endpoint by a curl tool, I've noticed that the response header didn't include an HTTP Content-Type header.
This may cause inappropriate behavior of a SPARQL client.
Below is the one I encountered. The query is a Construct SPARQL query.
% curl -vLH 'Accept: application/rdf+xml' --data-urlencode [email protected] https://id.nlm.nih.gov/mesh/sparql
...
> POST /mesh/sparql HTTP/1.1
> Host: id.nlm.nih.gov
> User-Agent: curl/7.64.1
> Accept: application/rdf+xml
> Content-Length: 365
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 365 out of 365 bytes
< HTTP/1.1 200
< Date: Wed, 18 Nov 2020 05:05:07 GMT
< Server: Apache/2.4.6 (CentOS)
< X-Frame-Options: SAMEORIGIN
< X-Forwarded-Proto: https
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, PUT
< Access-Control-Allow-Headers: Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With
< Access-Control-Max-Age: 1800
< Set-Cookie: JSESSIONID=4D5D6794B67A0483E64DC70F07CFDFF2; Path=/mesh; Secure; HttpOnly
< Cache-Control: no-cache,no-store
< X-XSS-Protection: 1; mode=lock
< Transfer-Encoding: chunked
< X-count: 2
< X-VIP-Info: 130.14.16.63:443
< X-Pool-Info: /Common/id_pool 10.1.5.126 80
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
<
...
In addition, when trying a query at MeSH RDF API, I noticed that there was mismatch between Response content type
and the one in the Response headers
.
I set it to application/ld+json
, but the response was content-type: application/rdf+xml;charset=utf-8
.
Moreover, text/turtle
and application/rdf+n3
also set no content-type as in the case of application/rdf+xml
.
akuckartz
Metadata
Metadata
Assignees
Labels
No labels