Maybe there is a proxy stopping your connections.
Connect every QHttp signal to a slot of your test application, and add trace in every slot, for example:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
class QMyTestApplication : public QObject {
QHttp myHttp;
// ...
public slots:
// ...
void slotProxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*);
// ...
};
QMyTestApplication::QMyTestApplication ()
{
// ...
connect(&myHttp,SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*)),
this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*)));
// ...
}
void QMyTestApplication::slotProxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*)
{
qDebug("QMyTestApplication::slotProxyAuthenticationRequired");
}
|
Do it for every slot and you will see what is making the request fail.
Best regards,
Manuel