[ckan-dev] API: '+' will be removed in JSON literals

Pascal Christoph christoph at hbz-nrw.de
Mon Sep 26 10:11:14 UTC 2011


Am 22.09.2011 09:23 schrieb Florian Marienfeld:
> We also went for url-encode, but this lead to other problems. i think
> because in json urls are usually not encoded, maybe?
>
> What stops you from telling curl
> -H "Content-Type: application/json;charset=utf-8"

uhm, well, yes! Thanx, that does it :)

oo

> On 21.09.11 14:17, Pascal Christoph wrote:
>>  Am 20.09.2011 18:22 schrieb Pascal Christoph:
>>>  In a literal like:
>>>
>>>  "example/rdf+xml"
>>>
>>>  the '+' will be removed if uploaded through the API.
>>
>>  to be more specific: using curl with "-d @" option. But curl then send
>>  the data as "application/x-www-form-urlencoded" , and thats it!
>>
>>  I have to urlencode '+','=' etc. , and things go well.
>>
>>  sorry for this "bug"-report.
>>
>>  oo
>>
>>  _______________________________________________
>>  ckan-dev mailing list
>>  ckan-dev at lists.okfn.org
>>  http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>
> _______________________________________________
> 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