Adds support for headers in QNetworkProxy.
authorJonas M. Gastal <jgastal@profusion.mobi>
Wed, 23 Nov 2011 17:11:03 +0000 (15:11 -0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 Nov 2011 17:16:33 +0000 (18:16 +0100)
commit4cffc72023876645f3973823cdfd204094ebe097
tree953f27fcab14691113fd385e4051954d2eea0724
parent8f1868e7c36cb890c9d71dcd9d07d7019058cf94
Adds support for headers in QNetworkProxy.

The API is the same that is present on QNetworkRequest class. Since
these are HTTP headers, this only affects proxies of type HttpProxy and
HttpCachingProxy.

This was created as a general solution to the problem pointed out in
QTBUG-19569(some proxies only accept request with specific User Agents).
In the same way that there are cases where setting the User Agent is
desired there might be reasons to set other headers, hence the support
for any header.

Change-Id: Ifd04f34d29eedb6c2a3f0b50708244996b12a123
Task: QTBUG-19569
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/kernel/qnetworkproxy.cpp
src/network/kernel/qnetworkproxy.h
src/network/socket/qhttpsocketengine.cpp