Results 1 to 1 of 1

Thread: QTcpSocket gzip and Transfer chunked

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTcpSocket gzip and Transfer chunked

    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
    Last edited by giusepped; 10th August 2011 at 17:01.

Similar Threads

  1. qUncompress data from gzip
    By Talei in forum Newbie
    Replies: 6
    Last Post: 5th December 2010, 01:50
  2. Replies: 0
    Last Post: 21st July 2010, 21:55
  3. QTcpSocket problem in file transfer
    By omprakash in forum Qt Programming
    Replies: 6
    Last Post: 25th January 2010, 08:18
  4. File Transfer with QTcpServer and QTcpSocket
    By NoRulez in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2009, 17:12
  5. QTcpSocket & transfer errors
    By jkam in forum Qt Programming
    Replies: 1
    Last Post: 20th July 2008, 20:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.