> 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

Reply via email to