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. How can I change proxy for application? realtime

How can I change proxy for application? realtime

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 117 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.
  • T Offline
    T Offline
    tjyuanxi
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by ChrisW67
      #2

      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.

      1 Reply Last reply
      0

      • Login

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