diff options
author | Andy Shaw <qt-info@nokia.com> | 2009-04-01 09:32:41 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2009-04-01 09:32:41 (GMT) |
commit | 21b8f37ba1c29450d46abe3d86f6215d42e5f232 (patch) | |
tree | 8a757214711f3f76a7335787c0091bebe196721a /src/network | |
parent | 4edf0c16170f0f727536c6eaefca92b40d03f835 (diff) | |
download | Qt-21b8f37ba1c29450d46abe3d86f6215d42e5f232.zip Qt-21b8f37ba1c29450d46abe3d86f6215d42e5f232.tar.gz Qt-21b8f37ba1c29450d46abe3d86f6215d42e5f232.tar.bz2 |
Subject: Mention setProxy() should be called before setHost() in the doc
Reviewed-by: Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qhttp.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/access/qhttp.cpp b/src/network/access/qhttp.cpp index 0141ae2..96ccc91 100644 --- a/src/network/access/qhttp.cpp +++ b/src/network/access/qhttp.cpp @@ -2120,6 +2120,10 @@ int QHttp::setUser(const QString &userName, const QString &password) Web proxy cache server (from \l http://www.squid.org/). For transparent proxying, such as SOCKS5, use QNetworkProxy instead. + \note setProxy() has to be called before setHost() for it to take effect. + If setProxy() is called after setHost(), then it will not apply until after + setHost() is called again. + \sa QFtp::setProxy() */ int QHttp::setProxy(const QString &host, int port, @@ -2139,7 +2143,7 @@ int QHttp::setProxy(const QString &host, int port, is QNetworkProxy::HttpCachingProxy, QHttp will behave like the previous function. - Note: for compatibility with Qt 4.3, if the proxy type is + \note for compatibility with Qt 4.3, if the proxy type is QNetworkProxy::HttpProxy and the request type is unencrypted (that is, ConnectionModeHttp), QHttp will treat the proxy as a caching proxy. |