<div dir="ltr">Hi<div><br></div><div>I have a HTTP-Server based on QTcpServer.</div><div><br></div><div>Do you have an idea how I could get the authority part of the HTTP request?<br>(<a href="https://en.wikipedia.org/wiki/URI_scheme#Generic_syntax">https://en.wikipedia.org/wiki/URI_scheme#Generic_syntax</a>)</div>
<div>A request might look like this: <a href="http://127.0.0.1:8462/">http://username:password@127.0.0.1:8462</a>/method?key=value</div><div><br>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?</div>
<div><br></div><div>Thanks</div></div>