[ckan-discuss] API, PUT: Integrity Error

Pascal Christoph christoph at hbz-nrw.de
Tue Apr 26 15:42:01 BST 2011


Hello,

I am getting the following error:
{
* About to connect() to ckan.net port 80 (#0)
*   Trying 46.51.189.76... connected
* Connected to ckan.net (46.51.189.76) port 80 (#0)
> PUT /api/rest/package/hbz_unioncatalog HTTP/1.1
> User-Agent: curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0
OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
> Host: ckan.net
> Accept: */*
> Authorization:bb5231a1-41f8-4e50-92f7-b1bc05ce38b7
> Content-Length: 4156
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
* Done waiting for 100-continue
* HTTP 1.0, assume close after body
< HTTP/1.0 400 Bad Request
< Date: Tue, 26 Apr 2011 13:53:15 GMT
< Server: Apache/2.2.14 (Ubuntu)
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Length: 15
< Access-Control-Allow-Origin: *
< Vary: Accept-Encoding
< Content-Type: text/html; charset=utf-8
< X-Cache: MISS from localhost
< X-Cache-Lookup: MISS from localhost:80
< Via: 1.0 localhost (squid/3.0.STABLE19)
< Connection: close
<
* Closing connection #0
Integrity Error
}

using the API with curl, see example[1]. I have used the same curl ca. a
month ago, pretty sure that my curl syntax has not changed, JSON seems
to be correct.
 What am I missing?

Many thanks for your help in advance,
-o

[1]http://pastebin.com/2v7QasZy




More information about the ckan-discuss mailing list