Results 1 to 2 of 2

Thread: QHTTP Status code

  1. #1
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QHTTP Status code

    Hello!

    While trying to connect to several URL's I receive various errors like 30X, 40X (other than 404, I know that one). Most of them mean somesort of Temporary of permanent redirection, proxy use,... How can I receive the new URL, so I can connect to it. For connection I use:
    Qt Code:
    1. http->setHost(urlt.host(), urlt.port() != -1 ? urlt.port() : 80);
    2. if (!urlt.userName().isEmpty())
    3. http->setUser(urlt.userName(), urlt.password());
    4. httpGetId = http->get(urlt.toString(), file);
    To copy to clipboard, switch view to plain text mode 

    Tnx, Luka

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QHTTP Status code

    You should look in HTTP protocol specification to see what each code means and how to cope with it.

Similar Threads

  1. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  2. Dialog and code design issue
    By Gopala Krishna in forum Qt Programming
    Replies: 1
    Last Post: 24th September 2006, 17:54
  3. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  4. how to use QHttp inside QThread in Qt3
    By alusuel in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2006, 11:19

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.