diff options
Diffstat (limited to 'doc/src/snippets/code/src_network_access_qhttp.cpp')
-rw-r--r-- | doc/src/snippets/code/src_network_access_qhttp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/code/src_network_access_qhttp.cpp b/doc/src/snippets/code/src_network_access_qhttp.cpp index 57698a0..d6e814b 100644 --- a/doc/src/snippets/code/src_network_access_qhttp.cpp +++ b/doc/src/snippets/code/src_network_access_qhttp.cpp @@ -11,14 +11,14 @@ QString contentType = header.value("content-type"); //! [2] QHttpRequestHeader header("GET", QUrl::toPercentEncoding("/index.html")); -header.setValue("Host", "qtsoftware.com"); -http->setHost("qtsoftware.com"); +header.setValue("Host", "qt.nokia.com"); +http->setHost("qt.nokia.com"); http->request(header); //! [2] //! [3] -http->setHost("qtsoftware.com"); // id == 1 +http->setHost("qt.nokia.com"); // id == 1 http->get(QUrl::toPercentEncoding("/index.html")); // id == 2 //! [3] |