Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19569

Can't change HTTP proxy request headers while using QTcpSocket

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Labels:
      None
    • Environment:

      Every OS

    • Commits:
      4cffc72023876645f3973823cdfd204094ebe097

      Description

      I have a QTcpSocket (or QSslSocket) and I set a proxy with "setProxy".

      So the program automatically send a request to the proxy before the data in the buffer.

      The request is like that:

      CONNECT x.x.x.x:y HTTP/1.1
      Proxy-Connection: keep-alive
      User-Agent: Mozilla/5.0
      Host: x.x.x.x

      But it's not possible to change the headers like User-Agent.

      It is possible using QNetworkRequest but I need to use QSslSocket !

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            Reporter:
            4t0m!k Jonathan Lauvernier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Gerrit Reviews

                  There are no open Gerrit changes