QNetworkAccessManager deal http-equiv="refresh" content="url=*"
Unsolved
General and Desktop
-
https://moon.fm/download/linux/MoonFM.AppImage is a htm:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="0;url='https://moon.fm/dist/MoonFM-2.0.11-x86_64.AppImage'" /> <title>Redirecting to https://moon.fm/dist/MoonFM-2.0.11-x86_64.AppImage</title> </head> <body> Redirecting to <a href="https://moon.fm/dist/MoonFM-2.0.11-x86_64.AppImage">https://moon.fm/dist/MoonFM-2.0.11-x86_64.AppImage</a>. </body> </html>
How QNetworkAccessManager get redirect url ?
-
@sonichy said in QNetworkAccessManager deal http-equiv="refresh" content="url=*":
How QNetworkAccessManager get redirect url ?
What do you mean? How it is implemented? See its source code.
If you want to know whether a redirect happened see https://doc.qt.io/qt-5/qnetworkreply.html#redirected