Hm, I would have done it the same way. Fabrice played with that stuff once and had some issues, too. But I don't remember the details. Maybe probing with wireshark gives a bit of additional information on what's failing.
oliver -------- Original-Nachricht -------- > Datum: Tue, 18 Sep 2012 10:51:59 +0200 > Von: solitone <[email protected]> > An: [email protected] > CC: "Albrecht Dreß" <[email protected]>, Oliver Eichler > <[email protected]> > Betreff: Re: [Qlandkartegt-users] Proxy authentication issue > Albrecht Dreß ha scritto: > > wouldn't it be sufficient to just add the user > > name and password to the call of > > > > > > > QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::HttpProxy,m_httpProxy,m_httpProxyPort)); > > > > > > in CResources::CResources()? > > > > I also do not have a proxy w/ authentication, but 'solitone': might you > > want to try if the hardcoded user/passwd values in the sources (for > > testing) solve the issue for you > > I tried Albrecht's suggestion, but unfortunately I still have the "proxy > requires authentication" issue when doing a google search. > > Maybe I did something wrong? > > The call to QNetworkProxy::setApplicationProxy seems correct to me, but > please let me know your thoughts. > > Here's the code snippet I customized, in CResources.cpp: > > ----------------------------------------------------------------------- > if(m_useHttpProxy) > /* 2012.09.17 -- Davide Cavallari > * > * Test: proxy authentication > * > */ > > QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::HttpProxy,m_httpProxy,m_httpProxyPort,"my_username","my_password")); > > // > QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::HttpProxy,m_httpProxy,m_httpProxyPort)); > else > > QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::NoProxy)); > ----------------------------------------------------------------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
