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