View Full Version : QHttp decoding the deflated repsonse
prashanth.gedde
13th July 2008, 16:17
Hi,
Just wanted to know how to decode the deflated http response with
Content-Encoding: gzip
Is there any possibilities of installing HTTP filters which does this job?
Regards
Prashanth
marf
13th July 2008, 18:41
I'm not 100% sure but have you tried http://doc.trolltech.com/4.4/qbytearray.html#qUncompress
I think it can be used to uncompress QHTTPResponseHeaders which have been content-encoded/compressed.
sadjoker
14th July 2008, 15:09
I generally decided the problem with commenting the next line during the forming of the HTTP Header for the http->request(...):
//header->setValue("Accept-Encoding", "gzip,deflate");
That way the webserver "knows" not to send compressed htmls.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.