Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Multiple proxy configuration
QtWS25 Last Chance

Multiple proxy configuration

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 717 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Gisa
    wrote on 3 Jun 2018, 22:00 last edited by
    #1

    I often see application that allows the user to set a proxy but their form often look like this:

    0_1528062963973_a32f4827-620a-4c7a-9060-d25b61086d69-image.png

    0_1528063132218_ff116bce-3132-4ab6-b89b-35ef76c4a253-image.png

    They allow the user to specify more than one proxy, but QNetworkAccessManager::setProxy allows the user to pass only one QNetworkProxy.

    How does that work, how to allow the user to specify the proxies for each protocol and handle that in Qt?

    J 1 Reply Last reply 4 Jun 2018, 05:12
    0
    • M Mr Gisa
      3 Jun 2018, 22:00

      I often see application that allows the user to set a proxy but their form often look like this:

      0_1528062963973_a32f4827-620a-4c7a-9060-d25b61086d69-image.png

      0_1528063132218_ff116bce-3132-4ab6-b89b-35ef76c4a253-image.png

      They allow the user to specify more than one proxy, but QNetworkAccessManager::setProxy allows the user to pass only one QNetworkProxy.

      How does that work, how to allow the user to specify the proxies for each protocol and handle that in Qt?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 4 Jun 2018, 05:12 last edited by
      #2

      @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()."

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mr Gisa
        wrote on 4 Jun 2018, 10:45 last edited by Mr Gisa 6 Apr 2018, 10:48
        #3

        Hmm, I got it, thank you very much. I will try to implement something like that.

        1 Reply Last reply
        0

        2/3

        4 Jun 2018, 05:12

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved