Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Qt HTTP server

    Showcase
    7
    10
    33434
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      goetz last edited by

      "KodeClutz":http://kodeclutz.blogspot.com/ just published a blog entry praising an HTTP server written completely with Qt:

      bq. QHttpServer: Web Apps in Qt
      Qt is a great GUI toolkit, but it is also an entire C++ standard library waiting to be used for other tasks. In addition the network module is really powerful. I’ve been playing around with node.js for a while now, and realized that Qt’s default asynchronous nature maps over perfectly to create a event-based web server. To make things better, Ryan Dahl’s small and fast http-parser is freely available. So I just combined the two, and here is QHttpServer.

      You can find the entire blog post on http://kodeclutz.blogspot.com/2011/02/qhttpserver-web-apps-in-qt.html the sources are on "github":https://github.com/nikhilm/qhttpserver.

      http://www.catb.org/~esr/faqs/smart-questions.html

      N 1 Reply Last reply Reply Quote 0
      • ?
        Guest last edited by

        thanks volker, was looking for server.. see this thread "here":http://developer.qt.nokia.com/forums/viewthread/854/ ... will give this a shot for my pet project but on hold now.. past few weeks :(

        1 Reply Last reply Reply Quote 0
        • L
          luca last edited by

          Thanks,
          very interesting project.

          1 Reply Last reply Reply Quote 0
          • S
            s.frings last edited by

            If you are searching for a Qt based HTTP server, try out QtWebApp, which contains such a library plus an example application.

            The library support persistent connections as well as cookies and file-uploads. Usage is a simple as Java servlets.

            http://stefanfrings.de/qtwebapp/index-en.html

            1 Reply Last reply Reply Quote 0
            • M
              msscba last edited by

              another option is tufão at: http://code.google.com/p/tufao/

              1 Reply Last reply Reply Quote 0
              • M
                msscba last edited by

                more three options:

                1. http://www.webtoolkit.eu/wt
                2. http://cppcms.com/wikipp/en/page/main
                3. http://gwan.com/
                1 Reply Last reply Reply Quote 0
                • A
                  antonio last edited by

                  Hi,
                  I tried to compile QHttpServer on Windows and I had problems like this:

                  ..\build\moc_qhttpconnection.cpp(50) : warning C4273: 'QHttpConnection::qt_stati
                  c_metacall' : vinculación de DLL incoherente

                  "dll entailment inchorente"

                  1 Reply Last reply Reply Quote 0
                  • A
                    antonio last edited by

                    I have tried successfully with QtService from QtSolutions:

                    "QtService":http://qt.digia.com/Product/Qt-Add-Ons/Qt-Solutions-Archive/

                    1 Reply Last reply Reply Quote 0
                    • F
                      foxgod last edited by

                      [quote author="antonio" date="1378486120"]Hi,
                      I tried to compile QHttpServer on Windows and I had problems like this:

                      ..\build\moc_qhttpconnection.cpp(50) : warning C4273: 'QHttpConnection::qt_stati
                      c_metacall' : vinculación de DLL incoherente

                      "dll entailment inchorente"[/quote]

                      how to write http client and http server .thank you

                      1 Reply Last reply Reply Quote 0
                      • N
                        nathan-osman @goetz last edited by

                        I have just put the finishing touches on my own HTTP server implementation, QHttpEngine. The goal of the project is to produce a simple set of classes that make it easy to add an HTTP server to an existing application.

                        You could use the library to add a local API to an application, for example. QHttpEngine uses Qt's introspection facilities to expose slots from a QObject class as HTTP endpoints. The library is also capable of serving directories containing static content - even resource directories.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post