Hi everyone:
I dont know why when I set the proxy's username and password,then I test the link,it return failed,but when without username and password,and the proxy is worked,I was fighting with the problem for sometime,but not resolve it yet.My Qt version is 4.5.2.
here is the reference code.can someone give me some suggestions or solus?
//begin mod
QNetworkProxy proxy;
proxy.setType(QNetworkProxy::HttpProxy);
proxy.setHostName(pProxyInfo->qstrProxyServerName);
proxy.setPort(pProxyInfo->qstrProxyPort.toInt());
proxy.setUser(pProxyInfo->qstrProxyUserName);
proxy.setPassword(pProxyInfo->qstrProxyPassWord);
//QNetworkProxy::setApplicationProxy(proxy);*/
m_pTestHttpObj->setProxy(proxy);
Thx and BR
Bookmarks