qt5base-lts/tests/auto/network/access
Timur Pocheptsov cebf1fea4a Add redirects policy to QNetworkAccessManager
This patch makes it possible to enable/disable redirects on QNAM
level (before it was per-request only). This policy would be applied
to all subsequent requests* created by QNAM.

The policies we support at the moment:
a. Manual - that's what we always had - it's up to a user to handle
   redirects.
b. NoLessSafeRedirectsPolicy - we allow http->http, http->https and
   https->https redirects, but no protocol 'downgrade' (no
   https->http redirects).
c. SameOriginPolicy - we check that protocol/host/port are
   the same.

Updated tst_qnetworkreply.

*We previously were enabling redirect for each request, by
 setting FollowRedirectsAttribute on QNetworkRequest object.
 For backward compatibility this attribute has a higher priority
 (if set) than QNAM's policy (and it will work as NoLessSafeRedirectsPolicy).

[ChangeLog][QtNetwork] Added redirects policy to QNAM

Task-number: QTPM-239
Task-number: QTPM-237
Change-Id: I493d1728254b71b61b5504937e8e01dca5953527
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2017-01-17 18:51:32 +00:00
..
hpack HPACK implementation 2016-06-15 11:26:45 +00:00
http2 HTTP/2 - fix handling of GOAWAY frame 2017-01-11 10:39:43 +00:00
qabstractnetworkcache qabstractnetworkcache - enable several tests 2016-01-26 13:12:03 +00:00
qftp Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qhttpnetworkconnection Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qhttpnetworkreply Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qnetworkaccessmanager Updated license headers 2016-01-21 18:55:18 +00:00
qnetworkcachemetadata Updated license headers 2016-01-21 18:55:18 +00:00
qnetworkcookie Add qtest_network.h 2016-09-29 21:46:19 +00:00
qnetworkcookiejar Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-01 06:02:55 +01:00
qnetworkdiskcache Updated license headers 2016-01-21 18:55:18 +00:00
qnetworkreply Add redirects policy to QNetworkAccessManager 2017-01-17 18:51:32 +00:00
qnetworkrequest Add qtest_network.h 2016-09-29 21:46:19 +00:00
spdy Updated license headers 2016-01-21 18:55:18 +00:00
access.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00