Results 1 to 1 of 1

Thread: (SOLVED)QNetworkAccessManager and Transfer-Encoding: chunked - dont retrieve all data

  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default (SOLVED)QNetworkAccessManager and Transfer-Encoding: chunked - dont retrieve all data

    Hello,
    I have a piece of code like this:
    Qt Code:
    1. netMenag = new QNetworkAccessManager( this );
    2. connect( netMenag, SIGNAL( finished(QNetworkReply*) ), this, SLOT( readDataGET(QNetworkReply*) ), Qt::QueuedConnection );
    3. netMenag->get( header );
    To copy to clipboard, switch view to plain text mode 
    to retrieve WEB page send from the server. The problem with that is that in slot readDataGET(QNetworkReply*), QNetworkReply contains only first packet of the chunked transmission.
    Same hapens when I use QTcpSocket. I can see with qDebug() << socket->readAll(); all the packets but for some unknown to me reasons when I do QByteArray HTTP.append( socket->readAll() ); data don't contains full reply from server.

    Any thoughts about retrieving data with HTTP Transfer-Encoding: chunked.?

    Regards

    EDIT:
    Solved. It seams that qDebug() don't show more then ~33KB of the data, so my output was truncated.
    Last edited by Talei; 21st July 2010 at 23:40.

Similar Threads

  1. QNetworkAccessManager with Accept-Encoding gzip
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2013, 11:46
  2. Data transfer between QIODevice
    By benlau in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2010, 05:59
  3. Transfer Data Between Dialogs
    By umulingu in forum Qt Programming
    Replies: 4
    Last Post: 19th February 2010, 08:35
  4. QDialog and QMainWindow Data Transfer
    By Ahmad in forum Qt Programming
    Replies: 12
    Last Post: 6th May 2007, 07:02

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.