And here was a response and then my response. I have Vimal checking his username/password. He has not got back with me today.
-Jason //------------------------------// Jason R. Kretzer Lead Application Developer ja...@gocodigo.com<mailto:ja...@gocodigo.com> //-----------------------------// From: "Jason R. Kretzer" <ja...@gocodigo.com<mailto:ja...@gocodigo.com>> To: Thiago Macieira <thiago.macie...@intel.com<mailto:thiago.macie...@intel.com>>, "interest@qt-project.org<mailto:interest@qt-project.org>" <interest@qt-project.org<mailto:interest@qt-project.org>> Subject: Re: [Interest] Http Proxy connection woes So, incorrect credentials will cause a timeout? Yeah the repeating code was a leftover from when I was checking the proxy at different points. Anyway, I can remove the signal/slot connect then as long as it is set in the proxy to begin with. QObject::connect(&socket,SIGNAL(proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)), this, SLOT(onProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*))); Any ideas on what format the credentials should use? DOMAIN/someUsername or DOMAIN\someUsername or DOMAIN\\someUsername or someIUsername@DOMAIN -Jason //------------------------------// Jason R. Kretzer Lead Application Developer ja...@gocodigo.com<mailto:ja...@gocodigo.com> //-----------------------------// From: Thiago Macieira <thiago.macie...@intel.com<mailto:thiago.macie...@intel.com>> To: "interest@qt-project.org<mailto:interest@qt-project.org>" <interest@qt-project.org<mailto:interest@qt-project.org>> Subject: Re: [Interest] Http Proxy connection woes On Monday 06 April 2015 07:52:01 Jason Kretzer wrote: bool ServerCommunication::connectToPort(QString server, int port) { QTcpSocket socket; QNetworkProxy proxy = QNetworkProxy::applicationProxy(); socket.setProxy(proxy); These two lines are unnecessary. QTcpSocket will use the application proxy by default. void ServerCommunication::onProxyAuthenticationRequired(const QNetworkProxy &p, QAuthenticator *auth) { qDebug() << "Calling onProxyAuthenticationRequired method"; QNetworkProxy proxy = QNetworkProxy::applicationProxy(); auth->setUser(proxy.user()); auth->setPassword(proxy.password()); } Given what the proxy you've set in the first method, you're not adding any new information here. Your proxy user and/or password are incorrect or missing in QNetworkProxy::applicationProxy() in the first place. I am totally at a loss on this. I have googled this for hours looking for different ideas. Would using a QNetworkAccessManager fare any better than the QTcpSocket? Am I using the Qauthenticator correctly? Should I further increase the timeout? Do I need to disconnect the SIGNAL from inside the SLOT to keep it from being called so many times — ie. Is that resetting the progress and never allowing it to properly authenticate? Your code is correct, even if it does things it doesn't have to. The problem is that your authentication credentials are wrong. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org<mailto:Interest@qt-project.org> http://lists.qt-project.org/mailman/listinfo/interest ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5751 / Virus Database: 4315/9375 - Release Date: 03/24/15 Internal Virus Database is out of date. ________________________________ No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2015.0.5751 / Virus Database: 4315/9375 - Release Date: 03/24/15 Internal Virus Database is out of date.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest