Qt proxy usage
-
wrote on 1 Mar 2019, 16:54 last edited by imaqt 0 3 Jan 2019, 17:16
I have a qt class that connects to a website. How can I use qt proxy functionality to have multiple instances of the class connect to said website with a different proxy?
-
wrote on 1 Mar 2019, 18:21 last edited by Kent-Dorfman 3 Jan 2019, 18:23
proxy is a generic term. whos proxy and what type of proxy?
round-robin dns on the server end?
proxy internet gateway your client goes through?outgoing gateways proxys exist to protect the net and limit bandwidth. Are you trying to steal more bandwidth?
-
wrote on 1 Mar 2019, 18:31 last edited by
@Kent-Dorfman said in Qt proxy usage:
round-robin dns
Say I have two objects of that class, Object A and B trying to connect to website W, and two proxy servers 1 and 2. I want A to connect to W through 1 and B to connect to W through 2.
-
@Kent-Dorfman said in Qt proxy usage:
round-robin dns
Say I have two objects of that class, Object A and B trying to connect to website W, and two proxy servers 1 and 2. I want A to connect to W through 1 and B to connect to W through 2.
wrote on 1 Mar 2019, 19:43 last edited by@imaqt-0 that's a quite unusual requirement, in general using different proxies depends on reaching different websites (i.e. website W is accessible via proxy 1 and website X is accessible via proxy 2)
Anyway, you can use a QNetWorkAccessManager object as member of your class, so on instantiation you then set the desired/required proxy to each object with QNetWorkAccessManager::setProxy()
1/4