Answer the question
In order to leave comments, you need to log in
How to get Header via QNetworkAccessManager?
I'm trying to parse an example program for capturing header'a. Due to the fact that the QHttp library is outdated, I use QNetworkAccessManager.
// downloader.h
#ifndef DOWNLOADER_H
#define DOWNLOADER_H
#include <QObject>
#include <QHttp>// заменил на <QNetworkAccessManager>
#include <QFile>
#include <QDebug>
class downloader : public QObject
{
Q_OBJECT
public:
explicit downloader(QObject *parent = 0);
void Do_Download();
signals:
public slots:
void stateChanged(int state);
void responseHeaderReceived ( const QHttpResponseHeader & resp ); //Ошибка тут
void requestFinished ( int id, bool error );
private:
QHttp *http;
};
#endif // DOWNLOADER_H
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question