Results 1 to 2 of 2

Thread: QHttpResponseHeader is incomplete

  1. #1
    Join Date
    Apr 2008
    Location
    California
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question QHttpResponseHeader is incomplete

    Hello!

    I'm getting an incomplete response header when I'm using below code.

    Qt Code:
    1. void snipit::somefunkyStuff()
    2. {
    3. http = new QHttp(this);
    4. connect(http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader &)),
    5. this, SLOT(readResponseHeaderCita(const QHttpResponseHeader &)));
    6. connect(http, SIGNAL(readyRead(const QHttpResponseHeader&)),
    7. this, SLOT(readyReadCita(const QHttpResponseHeader&)));
    8. -- some more code to do the http->request()
    9. }
    10.  
    11. void snipit::readyReadCita( const QHttpResponseHeader &resp)
    12. ba=http->readAll();
    13. QString temp1=ba;
    14. QMessageBox::critical(this, "SNiPiTRON", temp1, QMessageBox::Ok,
    15. QMessageBox::NoButton, QMessageBox::NoButton);
    16. }
    To copy to clipboard, switch view to plain text mode 

    By using the above function I believe that I'm trying to read all the information before even the response is completely recieved hence I only see partial data. How can I over come this and read the whole response at once in complete?

    Any directions would be very helpful.

    Thanks in advance,
    - AR

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QHttpResponseHeader is incomplete

    Please!!!!!!!!
    Don't cross post
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. QHttpResponseHeader encode & Save COOKIE value %20
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 8th April 2009, 22:22
  2. Incomplete QGLFramebufferObject - missing attachement
    By Sandip in forum Qt Programming
    Replies: 0
    Last Post: 9th April 2008, 09:00
  3. Replies: 3
    Last Post: 4th August 2006, 12:05

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
  •  
Qt is a trademark of The Qt Company.