Re: [Qlandkartegt-users] Proxy authentication issue
Brought to you by:
kiozen
From: Oliver E. <oli...@gm...> - 2012-09-18 09:37:33
|
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 <sol...@ma...> > An: qla...@li... > CC: "Albrecht Dreß" <alb...@ar...>, Oliver Eichler <oli...@gm...> > 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)); > ----------------------------------------------------------------------- |