PDA

View Full Version : QTcpSocket gzip and Transfer chunked



giusepped
10th August 2011, 16:41
I am trying to make a proxy.
It happens that sometime I need to change the content of webpages.
I use QTcpSocket to connect to the web server.
It happens that sometimes the web server replies with Accept-encoding: gzip
In order to modify the content of webpages, I need to unzip the content. How?
How parse the reply and get only the content?
I tried also to send "Accept-encoding:" in order to disable the compression at the server.
But, in that case I will receive chunked data, and how to unite them?
Regards