[ckan-dev] CKAN is mis-handling Accept header

Timothy Lebo lebot at rpi.edu
Tue May 22 12:07:56 UTC 2012


Thanks, Mark!

-Tim

On May 22, 2012, at 6:49 AM, Mark Wainwright wrote:

> Hi Tim,
> 
> Yes, that seems to be the wrong behaviour. I've created a ticket for
> it (http://trac.ckan.org/ticket/2409).
> 
> Mark
> 
> 
> On 21 May 2012 19:21, Timothy Lebo <lebot at rpi.edu> wrote:
>> CKAN,
>> 
>> It appears as though CKAN does not handle Accept headers correctly.
>> 
>> 
>> 
>> The following returns HTML:
>> 
>> curl -H "Accept: text/turtle,application/turtle,application/rdf+xml;q=0.8,text/plain;q=0.9,*/*;q=.5" http://thedatahub.org/dataset/farmers-markets-geographic-data-united-states
>> 
>> 
>> 
>> while we "know" CKAN "has" RDF/XML, since it returns it with this request:
>> 
>> curl -H "Accept: application/rdf+xml" http://thedatahub.org/dataset/farmers-markets-geographic-data-united-states
>> 
>> 
>> 
>> It is my impression that the first Accept header should lead to an RDF/XML representation instead of an HTML representation.
>> Is that correct?
>> 
>> Thanks,
>> Tim Lebo
>> 
>> 
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
> 
> 
> 
> -- 
> Mark Wainwright, CKAN Community Co-ordinator
> Open Knowledge Foundation http://okfn.org/
> Skype: m.wainwright
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> 





More information about the ckan-dev mailing list