diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.collection.allprop.expect b/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.collection.allprop.expect index e07e8a9947..15274c5e58 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.collection.allprop.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.collection.allprop.expect @@ -1,13 +1,13 @@ PROPFIND /container/ HTTP/1.1 -Depth: 1 -Content-Length: 95 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -Accept-Language: {{Ignore}} -Content-type:i application/xml; charset="utf-8" -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +depth: 1 +content-length: 95 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +accept-language: {{Ignore}} +content-type:i application/xml; charset="utf-8" +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.file.expect b/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.file.expect index dc0a211ef1..f7bb57ad89 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.file.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/WebDAV/propfind.file.expect @@ -1,12 +1,12 @@ PROPFIND /file HTTP/1.1 -Content-Length: 192 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -Accept-Language: {{Ignore}} -Content-type: text/xml; charset="utf-8" -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +content-length: 192 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +accept-language: {{Ignore}} +content-type: text/xml; charset="utf-8" +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/abort.expect b/tests/auto/qml/qqmlxmlhttprequest/data/abort.expect index 2df22df1e5..90e15895a6 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/abort.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/abort.expect @@ -1,11 +1,11 @@ PUT /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: text/plain;charset=UTF-8 -Content-Length: 10 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: text/plain;charset=UTF-8 +content-length: 10 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} Test Data diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/getResponseHeader.expect b/tests/auto/qml/qqmlxmlhttprequest/data/getResponseHeader.expect index c27e80af32..299bfd4689 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/getResponseHeader.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/getResponseHeader.expect @@ -1,8 +1,8 @@ GET /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/open_network.expect b/tests/auto/qml/qqmlxmlhttprequest/data/open_network.expect index c27e80af32..299bfd4689 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/open_network.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/open_network.expect @@ -1,8 +1,8 @@ GET /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/receive_binary_data.expect b/tests/auto/qml/qqmlxmlhttprequest/data/receive_binary_data.expect index 51b8524941..d18a95c7dd 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/receive_binary_data.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/receive_binary_data.expect @@ -1,8 +1,8 @@ GET /gml_logo.png HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: image/png -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: image/png +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/receive_json_data.expect b/tests/auto/qml/qqmlxmlhttprequest/data/receive_json_data.expect index 25836f74d7..0df27ead2c 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/receive_json_data.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/receive_json_data.expect @@ -1,8 +1,8 @@ GET /json.data HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: application/jsonrequest -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: application/jsonrequest +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.1.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.1.expect index 5bdcbc89b5..708aa1a7f0 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.1.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.1.expect @@ -1,11 +1,11 @@ POST /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: text/plain;charset=UTF-8 -Content-Length: 13 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: text/plain;charset=UTF-8 +content-length: 13 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} My Sent Data diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.10.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.10.expect index b935f35d0b..bb82e8ba74 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.10.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.10.expect @@ -1,11 +1,11 @@ OPTIONS /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: text/plain;charset=UTF-8 -Content-Length: 13 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: text/plain;charset=UTF-8 +content-length: 13 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} My Sent Data diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.11.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.11.expect index 726b6b4c77..341fb36f2a 100644 Binary files a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.11.expect and b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.11.expect differ diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.4.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.4.expect index 079b446c5c..75e6758f14 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.4.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.4.expect @@ -1,11 +1,11 @@ POST /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: charset=UTF-8;text/plain -Content-Length: 13 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: charset=UTF-8;text/plain +content-length: 13 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} My Sent Data diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.6.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.6.expect index b813f4924c..02062e905b 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.6.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.6.expect @@ -1,11 +1,11 @@ PUT /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Content-Type: text/plain;charset=UTF-8 -Content-Length: 13 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +content-type: text/plain;charset=UTF-8 +content-length: 13 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} My Sent Data diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.8.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.8.expect index c4aec80859..c580208eca 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.8.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.8.expect @@ -1,8 +1,8 @@ OPTIONS / HTTP/1.1 -Content-Length: 0 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -Accept-Language: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +content-length: 0 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +accept-language: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.9.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.9.expect index 377b9d6680..3a7ae3730d 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_data.9.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_data.9.expect @@ -1,8 +1,8 @@ OPTIONS /testdocument.html HTTP/1.1 -Content-Length: 0 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -Accept-Language: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +content-length: 0 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +accept-language: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_DELETE.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_DELETE.expect index 6b2ee3c713..feca475b75 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_DELETE.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_DELETE.expect @@ -1,8 +1,8 @@ DELETE /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_GET.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_GET.expect index c27e80af32..299bfd4689 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_GET.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_GET.expect @@ -1,8 +1,8 @@ GET /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_HEAD.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_HEAD.expect index b984220a5e..fa757aeac3 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_HEAD.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_ignoreData_HEAD.expect @@ -1,8 +1,8 @@ HEAD /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect b/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect index df321014a4..d6ff9854a5 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/send_patch.expect @@ -1,13 +1,13 @@ PATCH /qqmlxmlhttprequest.cpp HTTP/1.1 -Accept-Language: {{Ignore}} -If-Match: "ETagNumber" -Content-Type: application/example -Content-Length: 247 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +if-match: "ETagNumber" +content-type: application/example +content-length: 247 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} --- a/qqmlxmlhttprequest.cpp +++ b/qqmlxmlhttprequest.cpp diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader.expect b/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader.expect index 17209f209e..29d2d22030 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/setRequestHeader.expect @@ -1,10 +1,10 @@ GET /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Test-header: value -Test-header2: value,value2 -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +test-header: value +test-header2: value,value2 +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/status.expect b/tests/auto/qml/qqmlxmlhttprequest/data/status.expect index c27e80af32..299bfd4689 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/status.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/status.expect @@ -1,8 +1,8 @@ GET /testdocument.html HTTP/1.1 -Accept-Language: {{Ignore}} -Connection: Keep-Alive{{Ignore}} -HTTP2-Settings: {{Ignore}} -Accept-Encoding: {{Ignore}} -User-Agent: Mozilla/5.0 -Host: {{ServerHostUrl}} +accept-language: {{Ignore}} +connection: Keep-Alive{{Ignore}} +http2-settings: {{Ignore}} +accept-encoding: {{Ignore}} +user-agent: Mozilla/5.0 +host: {{ServerHostUrl}} diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/text.expect b/tests/auto/qml/qqmlxmlhttprequest/data/text.expect index 56eabe8b44..2b4314273f 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/text.expect +++ b/tests/auto/qml/qqmlxmlhttprequest/data/text.expect @@ -1,6 +1,6 @@ GET /text.xml HTTP/1.1 -Host: {{ServerHostUrl}} -Connection: Keep-Alive{{Ignore}} -Accept-Encoding: {{Ignore}} -Accept-Language: {{Ignore}} -User-Agent: {{Ignore}} +host: {{ServerHostUrl}} +connection: Keep-Alive{{Ignore}} +accept-encoding: {{Ignore}} +accept-language: {{Ignore}} +user-agent: {{Ignore}}