Hi,
I have the following piece of code.
QNetworkAccessManager *man = new QNetworkAccessManager(this);
QNetworkRequest getRequest;
getRequest.
setUrl((QUrl)requestUrl
);
m_svcReply = man->get(getRequest);
connect(m_svcReply, SIGNAL(finished()),this, SLOT(getWebRequestFinished()));
connect(m_svcReply, SIGNAL(error(QNetworkReply::NetworkError)),this, SLOT(webrequestFailed(QNetworkReply::NetworkError)));
QNetworkAccessManager *man = new QNetworkAccessManager(this);
QNetworkRequest getRequest;
getRequest.setUrl((QUrl)requestUrl);
m_svcReply = man->get(getRequest);
connect(m_svcReply, SIGNAL(finished()),this, SLOT(getWebRequestFinished()));
connect(m_svcReply, SIGNAL(error(QNetworkReply::NetworkError)),this, SLOT(webrequestFailed(QNetworkReply::NetworkError)));
To copy to clipboard, switch view to plain text mode
If I'm executing this request over WIFI, I get a proper response from the server.
However if I'm executing this request over 3G, I get a protocol "" is unknown error.
Any ideas why this might be happening?
Thanks
Bookmarks