Results 1 to 3 of 3

Thread: QHttp decoding the deflated repsonse

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QHttp decoding the deflated repsonse

    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

  2. #2
    Join Date
    Jul 2008
    Posts
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QHttp decoding the deflated repsonse

    I'm not 100% sure but have you tried http://doc.trolltech.com/4.4/qbytear...ml#qUncompress

    I think it can be used to uncompress QHTTPResponseHeaders which have been content-encoded/compressed.

  3. The following user says thank you to marf for this useful post:

    prashanth.gedde (16th July 2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    50
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QHttp decoding the deflated repsonse

    I generally decided the problem with commenting the next line during the forming of the HTTP Header for the http->request(...):

    Qt Code:
    1. //header->setValue("Accept-Encoding", "gzip,deflate");
    To copy to clipboard, switch view to plain text mode 

    That way the webserver "knows" not to send compressed htmls.

Tags for this Thread

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.