Russian Qt Forum

Qt => Работа с сетью => Тема начата: coder_gate от Апрель 17, 2010, 07:16



Название: Resume download with QHttp
Отправлено: coder_gate от Апрель 17, 2010, 07:16
Код:
file_ = new QFile(GetDownloadName());
file_->open(QIODevice::Append);

QUrl url(downloadURL_);
http_.setHost(url.host());

QHttpRequestHeader header("GET", url.path());
[b]header.addValue("Range", "bytes 21010-47021/47022");[/b]
qDebug()<<header.toString();
  http_.request(header,0, file_);

i want document header.addValue("Range", "bytes 21010-47021/47022");


Название: Re: Resume download with QHttp
Отправлено: alexman от Апрель 17, 2010, 10:22
From Qt Assistant:
#include <QHttpRequestHeader>
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This class is not part of the Qt GUI Framework Edition. Inherits QHttpHeader.