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. Network
Forum Updated to NodeBB v4.3 + New Features

Network

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.5k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    S.ANAND
    wrote on last edited by
    #1

    how to get the string after localhost in QTcpserver or any other

    like

    localhost/a.html

    if need to show to string a.html

    please rply

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      I didn't quite get what you mean. Could you explain the issue better? It would be awsome if you included an example

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        It is not clear what do you want to implement.

        Just figuring out, maybe what you are trying to do is a Http Server and not the QTcpServer.

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          S.ANAND
          wrote on last edited by
          #4

          Actually y i want to show a html page when eve the user enter in the web browser localhost
          but the thing is there are two pages home and contact

          so the user should enter localhost/home for home and localhost/contact for contact

          so how can i get that the user entered home or contact after localhost

          Thank You

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Code_ReaQtor
            wrote on last edited by
            #5

            As I suspect, it is a Http server. I recommend the "QHttpServer":https://github.com/nikhilm/qhttpserver library

            QTcpServer cannot implement what you want.

            Please visit my open-source projects at https://github.com/Code-ReaQtor.

            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