You need to get the value of the Content-Disposition header from QNetworkReply .
reply->header(QNetworkRequest::ContentDispositionHeader) // QVariant(invalid) reply->rawHeader("Content-Disposition") // "attachment; filename=\"securitywidget.o\"" I can not understand what's the catch. How can you normally get the file name without maximizing parsing?
"Date" "Tue, 10 Oct 2017 14:09:59 GMT" zzz"Server" "Apache/2.2.22 (Debian)" zzz"Expires" "Thu, 19 Nov 1981 08:52:00 GMT" zzz"Cache-Control" "no-store, no-cache, must-revalidate, post-check=0, pre-check=0" zzz"Pragma" "no-cache" zzz"Content-Length" "1519314" zzz"Content-Disposition" "attachment; filename=\"securitywidget.o\"" zzz"Keep-Alive" "timeout=5, max=100" zzz"Connection" "Keep-Alive" zzz"Content-Type" "application/binary" zzzoutputreply->rawHeaderList()with a separatorzzz- sm4ll_3ggQt) - sm4ll_3ggnet::HttpContentDispositionof Chromium - jfs