Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HTTP client and server
QtWS25 Last Chance

HTTP client and server

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 451 Views
  • 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.
  • P Offline
    P Offline
    Publicnamer
    wrote on last edited by
    #1

    Hi,
    Does Qt by any chance already have any API for either performing an HTTP GET and/or setting up a simple web server?
    Ideally these would be built-in to stock Qt and not be something I'd have to add and struggle to compile and integrate myself. I had seen someone's attempt at creating a Qt based web server from a few years ago but the code didn't compile.
    Thanks.

    Pl45m4P A 2 Replies Last reply
    0
    • P Publicnamer

      Hi,
      Does Qt by any chance already have any API for either performing an HTTP GET and/or setting up a simple web server?
      Ideally these would be built-in to stock Qt and not be something I'd have to add and struggle to compile and integrate myself. I had seen someone's attempt at creating a Qt based web server from a few years ago but the code didn't compile.
      Thanks.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Publicnamer

      Have a look at the Qt Network module

      • https://doc.qt.io/qt-5/qtnetwork-index.html

      There are also a lot of examples

      • https://doc.qt.io/qt-5/examples-network.html

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      2
      • P Publicnamer

        Hi,
        Does Qt by any chance already have any API for either performing an HTTP GET and/or setting up a simple web server?
        Ideally these would be built-in to stock Qt and not be something I'd have to add and struggle to compile and integrate myself. I had seen someone's attempt at creating a Qt based web server from a few years ago but the code didn't compile.
        Thanks.

        A Offline
        A Offline
        Abb Per
        wrote on last edited by
        #3

        @Publicnamer Use qNetworkAccessManager. Everything you need (http request etc) is in this class.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          You should take a look at the Cutelyst project.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved