Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. redirect
    Log in to post
    • All categories
    • J

      Solved QWebSocket refuses to follow HTTP 301 Redirect
      General and Desktop • qwebsocket redirect • • JustASimpleCoder

      3
      0
      Votes
      3
      Posts
      378
      Views

      J

      It turned out that nginx was returning 301 while trying to redirect from http to https (it had nothing to do with the endpoint itself thankfully).

      I changed my websocket URL to "wss://" + url and that seemed to resolve the issue for me.

      For future readers, if you are still experiencing errors with a Secure WebSocket you may want to adjust the SSL configuration of the QWebSocket.

      QSslConfiguration sslConfig; sslConfig.setProtocol(whateverProtocolYouDesire); // Set additional properties of sslConfig here... socket->setSslConfiguration(sslConfig);
    • E

      Solved How to redirect stdout & stderr to a file in a Qt console App (QCoreApplication) ?
      General and Desktop • stdout redirect console app • • eupuser00

      19
      0
      Votes
      19
      Posts
      6768
      Views

      JonB

      @Developer123
      The code answers there all implement sending Qt error messages within an application to a file. Perfectly useful in itself, but nothing to do with the topic title here of "How to redirect stdout & stderr to a file in a Qt console App (QCoreApplication)".

    • J

      Unsolved QNetworkAccessManager purges cookies if following redirect
      General and Desktop • qtnetwork qnetworkaccessm redirect cookies • • Jiloc

      8
      0
      Votes
      8
      Posts
      2978
      Views

      J

      @raven-worx
      I did as you suggested https://bugreports.qt.io/browse/QTBUG-63313 . Hope the bug report is properly documented

    • R

      QProcess can't read/write to some console applications?
      General and Desktop • qprocess console piping redirect • • r.kull

      4
      0
      Votes
      4
      Posts
      1769
      Views

      SGaist

      If it needs a named pipe then you should ask the author.

      AFAIK, you should be able to connect to a named pipe using QLocalSocket