Hmm it may be an issue with the site then; the XML is part of an API used by some applications, I haven't see others have an issue with this however.
>From my testing: - Using only gzip: the XML is not encoded but ICS think it is, therefore trying to decode non-encoded data, resulting in an error. (tested with my user there, I get uncompressed xml with ~780 KB) - Using gzip, deflate: XML is encoded/compressed, size is around 67 KB On my end, I use this code with Zlib to decode after receiving the data (after Get request finished successfully) // 1 = utf8 failed, defaulted to ansi > function LoadTSListFromGzipMS(var ts: TStringList; SrcMS: TStream; > useUTF8: Boolean): byte; > var ms: TMemoryStream; > begin > ms := TMemoryStream.Create; > SrcMS.Seek(0,0); > ZlibEx.ZDecompressStream2(SrcMS,ms,15+32); > ms.Position := 0; > Result := 0; > if useUTF8 then > ts.LoadFromStream(ms, TEncoding.UTF8) > else > ts.LoadFromStream(ms); > if useUTF8 and (ts.Count = 0) then begin > ms.Position := 0; > ts.LoadFromStream(ms); > Result := 1; > end; > ms.Free; > end; On Mon, Oct 8, 2012 at 10:50 AM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > Tested with this website http://myanimelist.net/malappinfo.php > > > > If I enable content encoding, then the data received isn't > > compressed unless I add deflate. > > Whether the site compresses the data is not the issue, it's whether the > ICS component can decompress anything with the change you proposed. And > my testing shows not. > > I suspect I know the reason, if a compression type of 'gzip, deflate' is > added, it expects exactly that string to be returned, the component does > not parse the separate words. > > Your test site also does not use deflate, testing with the ICS browser > demo gives: > > [0] > GET /malappinfo.php HTTP/1.1 > [0] > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* > [0] > Connection: Keep-Alive > [0] > Accept-Encoding: gzip, deflate > > [0] < HTTP/1.1 200 OK > [0] < Date: Mon, 08 Oct 2012 08:41:14 GMT > [0] < Server: Apache/2 > [0] < X-Powered-By: PHP/5.1.6 > [0] < Vary: Accept-Encoding > [0] < Content-Encoding: gzip > [0] < X-Served-By: app2v-mal.ao.prd.lax > [0] < Content-Length: 76 > > so it returns gzip not deflate, and ICS fails to decode the XML. > > Angus > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be