Results 1 to 2 of 2

Thread: QHTTP::GET doesn't work as expected !

  1. #1
    Join Date
    Jul 2008
    Qt products

    Default QHTTP::GET doesn't work as expected !

    Greetings !

    My need is simple ! I try to create a C++ program that can read html pages generated by a Google search path.

    I use the sample tool available at

    As you can see, it needs a http path to download the html file and place it on a file on the local HD.

    The problem is that the file is always "302 Found" !!!!! containing the following html text:

    Qt Code:
    1. <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
    2. <TITLE>302 Moved</TITLE></HEAD><BODY>
    3. <H1>302 Moved</H1>
    4. The document has moved
    5. <A HREF="">here</A>.
    6. </BODY></HTML>
    To copy to clipboard, switch view to plain text mode 

    If you place the following path in Firefox, .... will get a valid search result page !!!!!

    So what am i doing wrong here ????
    Thanks for any help !

  2. #2
    Join Date
    Feb 2006
    Oslo, Norway
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QHTTP::GET doesn't work as expected !

    Works for me with a minimal compilable example...
    J-P Nurmi

Similar Threads

  1. QT_NO_DEBUG_OUTPUT cause compile errors!
    By slux in forum Qt Programming
    Replies: 3
    Last Post: 7th January 2008, 23:48
  2. Need help integrating sigc++ with a KDE3/Qt3 app
    By Valheru in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2007, 15:39
  3. Program crashes (SIGSEGV)
    By Voldemort in forum Qt Programming
    Replies: 47
    Last Post: 21st May 2007, 20:09
  4. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 05:26


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.