qt5base-lts/tests/auto/network
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
..
access Add redirects policy to QNetworkAccessManager 2017-01-17 18:51:32 +00:00
bearer Add configurable connect timeout for QAbstractSocket 2016-11-29 14:01:47 +00:00
kernel Merge remote-tracking branch 'origin/5.8' into dev 2016-12-16 16:38:33 +01:00
socket Fix warnings in tests (MinGW/MSCV) 2016-11-29 17:08:46 +00:00
ssl remove redundant conditionals regarding ssl 2016-10-04 08:25:24 +00:00
network.pro