Multiple proxy configuration
-
I often see application that allows the user to set a proxy but their form often look like this:
They allow the user to specify more than one proxy, but
QNetworkAccessManager::setProxy
allows the user to pass only oneQNetworkProxy
.How does that work, how to allow the user to specify the proxies for each protocol and handle that in Qt?
-
I often see application that allows the user to set a proxy but their form often look like this:
They allow the user to specify more than one proxy, but
QNetworkAccessManager::setProxy
allows the user to pass only oneQNetworkProxy
.How does that work, how to allow the user to specify the proxies for each protocol and handle that in Qt?
@Mr-Gisa See http://doc.qt.io/qt-5/qnetworkaccessmanager.html#setProxy
"In some cases, it might be necessary to select different proxies depending on the type of request being sent or the destination host. If that's the case, you should consider using setProxyFactory()."