On 20.09.2011 12:32, Olivier Auverlot wrote:
Hi,
I try to write a client to www.jamendo.com with Zinc. Jamendo has a REST API to request the music catalog. It's a fun workshop to discover Zinc :-)
If I use the url " ZnClient get: 'http://api.jamendo.com/get2/name+url/album/xml" in my browser, I get the list of the last entries. But, if I do the same with Zinc, I get an error.
ZnClient get: 'http://api.jamendo.com/get2/name+url/album/xml'
The error is: "MessageNotUnderstood: Array>>peekFor:"
I think that the problem can be the URL rewriting. Maybe Zinc can't follow the link ?
Thanks for your help.
Olivier ;-) www.auverlot.fr The response contains duplicate Content-Length header fields. (both with the same value) Zn then fails since ZnHeaders >> contentLength expects there to be only one.
Cheers, Henry. P.S. The response code was 302, is redirection handled at a different API level, or is #get: missing it?