Sept. 20, 2011
11:17 a.m.
Hendrik, On 20 Sep 2011, at 12:56, Henrik Sperre Johansen wrote:
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.
Yes, there are indeed double headers, Safari reports them as 449, 449 while Zn turns them in an array #(449 449). As I said, I have to check the RFCs.
P.S. The response code was 302, is redirection handled at a different API level, or is #get: missing it?
In the past only ZnUserAgent and its subclass ZnHttpClient followed redirects. In the future, there will only be one client, currently named, ZnNeoClient, that does follow redirects. Sven