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

QNetworkAccessManager doesn't handle HTTP Status Code 308

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9.3
    • 5.9.1
    • Network: HTTP
    • None
    • a402b3a02e129702b1606a445affdba67ab9f805

      I'm testing my code for compatibility with HTTP 3xx status codes (redirects).

      I'm interested in codes 301, 302, 303, 307 and 308.

      All of those work fine with my code, except 308.

      My client testcase is Qt/C++ based, and my testing server is python-based. I'll post the code of both. 

      I run the server, then while it's running, I run the client and I get `got 0 bytes` in the console. If I change the response from 308 to, say, 301, it works fine (prints `got 3 bytes`).

      Note: The redirect works fine in Chrome, so my server code is likely correct.

        1. client.cpp
          0.8 kB
        2. test_server.py
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            manordheim Mårten Nordheim
            stefan_monov Stefan Monov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes