qt5base-lts/tests/auto/network/access
Mandeep Sandhu d815de8c26 QNetworkAccessManager: Support HTTP redirection
This commit adds support for following HTTP redirect responses on a per
request basis.

This behavior is disabled by default. It can be switched on by
setting the QNetworkRequest::FollowRedirectAttribute to true.

2 new error codes have been added to QNetworkReply:

* TooManyRedirectsError: Set when the number of redirects exceed a
given value set by the user (defaults to 50 if not set)

* UnsecureRedirectError: Set when we are redirecting from a 'https'
to 'http' protocol.

Test cases for the following scenarios:
* Single HTTP redirect using local test server
* Changing max-redirects
* Testing all redirect related error scenarios

The next commit will extend this feature at a QNAM level.

Task-number: QTBUG-8232
Change-Id: If9e28ad12bad08bcdc5bc511b1cd59dc9d8150f0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
2015-03-09 08:32:14 +00:00
..
qabstractnetworkcache Update copyright headers 2015-02-11 06:49:51 +00:00
qftp Update copyright headers 2015-02-11 06:49:51 +00:00
qhttpnetworkconnection Update copyright headers 2015-02-11 06:49:51 +00:00
qhttpnetworkreply Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkaccessmanager Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkcachemetadata Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkcookie Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkcookiejar QUrl effective TLDs: update table 2015-02-13 07:28:17 +00:00
qnetworkdiskcache Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-04 13:44:29 +01:00
qnetworkreply QNetworkAccessManager: Support HTTP redirection 2015-03-09 08:32:14 +00:00
qnetworkrequest Update copyright headers 2015-02-11 06:49:51 +00:00
spdy Update copyright headers 2015-02-11 06:49:51 +00:00
access.pro network: add support for the SPDY protocol 2014-02-19 21:44:15 +01:00