Network
-
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
-
I didn't quite get what you mean. Could you explain the issue better? It would be awsome if you included an example
-
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.
-
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 contactso 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
-
As I suspect, it is a Http server. I recommend the "QHttpServer":https://github.com/nikhilm/qhttpserver library
QTcpServer cannot implement what you want.