[Interest] Get the username:password part of a HTTP request from QTcpSocket

Lucas Betschart lucasbetschart at gmail.com
Sun Dec 1 17:11:20 CET 2013


Hi

I have a HTTP-Server based on QTcpServer.

Do you have an idea how I could get the authority part of the HTTP request?
(https://en.wikipedia.org/wiki/URI_scheme#Generic_syntax)
A request might look like this:
http://username:password@127.0.0.1:8462<http://127.0.0.1:8462/>
/method?key=value

>From the incomming QTcpSocket I can only get the IP, the port number and
the data (which includes the query string for HTTP but not the
authentication part). How can I get the rest of the request?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131201/13c958e5/attachment.html>


More information about the Interest mailing list