Unsolved How can I change proxy for application? realtime
-
I now know how to set up a proxy for the application by proxyAuthenticationRequired and setApplicationProxy. However, my proxy IP will expire after a period of time, and the proxy needs to be replaced. I don't know how to change the proxy. After setting the proxyagain in this way setApplicationProxy, it seems that password authentication will not be triggered again, then the page load failed. How can I change proxy realtime?
-
What are you trying now? How is your application connecting to the outside world?
Is it continuing to talk to the old proxy, or is it sending the old credentials to the new proxy?If you are using QNetworkAccessManager then QNetworkAccessManager::clearAccessCache() might be required.