Results 1 to 7 of 7

Thread: Qt Http implementation

  1. #1
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Exclamation Qt Http implementation

    I would like to use the QHttp class for my http server implementation. But the documentation for qt 4.6 says its obsolete. Is there any other class which I can use for my use-case ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Http implementation

    From the QHttp docs:
    However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API and a more modern protocol implementation.
    You perhaps want to look at QTcpServer for the server side of the equation though.

  3. #3
    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 Re: Qt Http implementation

    Try QTcpSocket, QNetworkAccessManager or QTcpServer.
    Edit: Posted to late...

  4. #4
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: Qt Http implementation

    I would like to allow the client to download files from such a server ... will qtcpserver be helpful for this ?

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Http implementation

    If your program is the client then QNetworkAccessManager and QNetworkReply
    If your program is the server then QTcpServer

  6. #6
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Exclamation Re: Qt Http implementation

    Is there a qt example app which does file hosting using QTcpServer ?

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Http implementation

    Have you actually looked at the QTcpServer docs?

Similar Threads

  1. Modbus implementation
    By ShamusVW in forum Qt Programming
    Replies: 14
    Last Post: 21st December 2011, 10:32
  2. Replies: 8
    Last Post: 16th April 2010, 09:41
  3. tab order implementation
    By yazwas in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2009, 16:34
  4. Regarding the implementation of QList
    By rachit.gupta in forum Qt Tools
    Replies: 1
    Last Post: 23rd September 2009, 12:41
  5. Protocol Implementation. ?
    By dheeraj in forum Qt Programming
    Replies: 32
    Last Post: 9th May 2008, 10:26

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.