Qt 6.12 LTS is out! See what's new in the release
blog
Getting a relative URL from QNetworkReply Location header
General and Desktop
1
Posts
1
Posters
1.3k
Views
1
Watching
-
@
QUrl location(reply->header(QNetworkRequest::LocationHeader).toString());
@
For this response:
@
Location: /relative/path/?test=hello
@
returns an invalid URL. Already reply->header(QNetworkRequest::LocationHeader) returns Invalid. Why is that? How can I get a relative URL from the Location header?