ZnHttpClient is sending a Connection: close header in the request which is causing delicious to return the headers, but not the actual content entity.

It's doing this in ZnHttpClient>>method:for:headers:data:limit:. Commenting out 'request setConnectionClose' in that method allows the get request to work.

On Apr 30, 2011 9:23pm, Andy Burnett <[email protected]> wrote:
I have just come across a very odd 'bug'? in Zinc. Evaluating the two lines (below) will return the same result for the various domains I tested, but not for Delicious. In their case, the HTTPClient returns what I expected - ie the contents of the page. But, the Zinc client returns an undefined object. Any thoughts on what is going on - user agent maybe??



response := HTTPClient httpGet:'http://www.delicious.com'.
response2 := ZnHttpClient new url:'http://www.delicious.com'; get.




Cheers
Andy








Reply via email to