diff options
| author | 2008-09-13 16:54:27 +0000 | |
|---|---|---|
| committer | 2008-09-13 16:54:27 +0000 | |
| commit | 3df9610610df26d3f7c84934c73e06d917c4784c (patch) | |
| tree | 8e12bd1c845b294a9c5ada1126e029e6bfbc24de /src/modules/objects/class_http.h | |
| parent | fixed typo in doc (diff) | |
| download | KVIrc-3df9610610df26d3f7c84934c73e06d917c4784c.tar.gz KVIrc-3df9610610df26d3f7c84934c73e06d917c4784c.tar.bz2 KVIrc-3df9610610df26d3f7c84934c73e06d917c4784c.zip | |
more work on http class (added auto redirect handling)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2455 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_http.h')
| -rw-r--r-- | src/modules/objects/class_http.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/objects/class_http.h b/src/modules/objects/class_http.h index 9430c194d..e20c7c067 100644 --- a/src/modules/objects/class_http.h +++ b/src/modules/objects/class_http.h @@ -39,10 +39,10 @@ public: KVSO_DECLARE_OBJECT(KviKvsObject_http) protected: QHttp *m_pHttp; -// QFile *m_pFile; QHash<int, QFile*> getDict; int m_id; bool m_bAbort; + bool m_bEnableForceRedirect; protected: bool functionSetHost(KviKvsObjectFunctionCall *c); bool functionGet(KviKvsObjectFunctionCall *c); @@ -60,6 +60,9 @@ protected: bool functionReadyReadEvent(KviKvsObjectFunctionCall *c); bool functionErrorString(KviKvsObjectFunctionCall *c); bool functionPost(KviKvsObjectFunctionCall *c); + bool functionFollowRedirect(KviKvsObjectFunctionCall *c); + + void redirect(QString &file,const QHttpResponseHeader &r); #ifndef QT_NO_OPENSSL bool functionIgnoreSslErrors(KviKvsObjectFunctionCall *c); @@ -74,7 +77,7 @@ protected slots: void slotDataReadProgress ( int done, int total ); #ifndef QT_NO_OPENSSL void slotSslErrors(QList<QSslError>); -#endif + #endif void slotResponseHeaderReceived(const QHttpResponseHeader &r); void slotReadyRead(const QHttpResponseHeader &r); void slotStateChanged ( int state); |
