qt5base-lts/tests/auto/network/access
Mate Barany 0345f07dd1 Support body for an HTTP GET request
Add two overloads to QNetworkAccessManager to support GET requests
with body.

Modify QNetworkReplyHttpImpl as well as these requests should not
be cached.

If the request is redirected it is possible that its type changes
from POST/PUT to GET and in this case the message body is deleted.
However, if a GET request has a body it should keep it after it has
been redirected - modify QNetworkReplyHttpImpl to keep the message
body after it has been redirected.

Fixes: QTBUG-112871
Change-Id: Ib01898638ed94238a98291870a5c51d56030868a
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2023-10-17 21:23:42 +02:00
..
hpack CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
hsts CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
http2 http2: When a reply is removed from the queue, only remove one 2023-10-16 19:28:26 +02:00
qabstractnetworkcache CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qdecompresshelper CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qhttpheaderparser CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qhttpnetworkconnection CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qhttpnetworkreply CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qnetworkaccessmanager CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qnetworkcachemetadata CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qnetworkcookie CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qnetworkcookiejar Update public suffix list 2023-09-20 22:33:18 +02:00
qnetworkdiskcache QtNetwork auto tests: compile with QT_NO_FOREACH 2023-08-22 21:50:38 +03:00
qnetworkreply Support body for an HTTP GET request 2023-10-17 21:23:42 +02:00
qnetworkrequest tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00