0
void QNetworkReply::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) [signal]

// The bytesReceived parameter indicates the number of bytes received, while bytesTotal indicates the total number of bytes expected to be downloaded. If the number of bytes to be downloaded is not known, bytesTotal will be -1.


我每次都收到 bytesTotal = -1 。header('Content-Length: '.strlen($content));我在我的 php 文件中尝试过,但没有结果。
什么 php 标头或其他东西可以提供帮助?

4

1 回答 1

0

解决方案标题是:

header("Content-type: application/octet-stream");
header("Content-length: ".strlen($content));
于 2013-06-20T10:57:29.803 回答